Make gst source a flake input

This commit is contained in:
Nathan van Doorn 2023-10-17 09:49:56 +02:00
parent 4490b28541
commit d44045b415
3 changed files with 28 additions and 7 deletions

View File

@ -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"
}
},

View File

@ -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;
};
})
)

View File

@ -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];