diff --git a/flake.lock b/flake.lock index 45332bc..3325978 100644 --- a/flake.lock +++ b/flake.lock @@ -30,6 +30,22 @@ "type": "indirect" } }, + "ntv2-gst-src": { + "flake": false, + "locked": { + "lastModified": 1692893804, + "narHash": "sha256-90TdrsnO5LatLD4dwivOnZG4tGJmNs2tdAsrL7eQF8g=", + "owner": "aja-video", + "repo": "ntv2-gst", + "rev": "33d3a4957088e49ccecd9efa577b87bb0492f738", + "type": "github" + }, + "original": { + "owner": "aja-video", + "repo": "ntv2-gst", + "type": "github" + } + }, "ntv2-src": { "flake": false, "locked": { @@ -50,6 +66,7 @@ "inputs": { "flake-utils": "flake-utils", "nixpkgs": "nixpkgs", + "ntv2-gst-src": "ntv2-gst-src", "ntv2-src": "ntv2-src" } }, diff --git a/flake.nix b/flake.nix index d36e4a8..a514a75 100644 --- a/flake.nix +++ b/flake.nix @@ -1,17 +1,25 @@ { description = "AJA video card software"; + inputs.ntv2-src = { type = "github"; owner = "aja-video"; repo = "ntv2"; flake = false; }; + inputs.ntv2-gst-src = { + type = "github"; + owner = "aja-video"; + repo = "ntv2-gst"; + flake = false; + }; outputs = { self, nixpkgs, flake-utils, ntv2-src, + ntv2-gst-src, }: ( flake-utils.lib.eachSystem ["x86_64-linux"] (system: let @@ -24,6 +32,7 @@ inherit ntv2-src; buildApps = false; }; + inherit ntv2-gst-src; }; }) ) diff --git a/ntv2-gst.nix b/ntv2-gst.nix index 8e76543..1bb3cf3 100644 --- a/ntv2-gst.nix +++ b/ntv2-gst.nix @@ -1,6 +1,6 @@ { stdenv, - fetchFromGitHub, + ntv2-gst-src, autoconf, automake, pkgconfig, @@ -10,12 +10,7 @@ }: stdenv.mkDerivation { name = "aja-ntv2-gst"; - src = fetchFromGitHub { - owner = "aja-video"; - repo = "ntv2-gst"; - rev = "refs/heads/master"; - hash = "sha256-90TdrsnO5LatLD4dwivOnZG4tGJmNs2tdAsrL7eQF8g="; - }; + src = ntv2-gst-src; sourceRoot = "source/gst-plugin"; patches = [./no.patch];