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" "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": { "ntv2-src": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -50,6 +66,7 @@
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"ntv2-gst-src": "ntv2-gst-src",
"ntv2-src": "ntv2-src" "ntv2-src": "ntv2-src"
} }
}, },

View File

@ -1,17 +1,25 @@
{ {
description = "AJA video card software"; description = "AJA video card software";
inputs.ntv2-src = { inputs.ntv2-src = {
type = "github"; type = "github";
owner = "aja-video"; owner = "aja-video";
repo = "ntv2"; repo = "ntv2";
flake = false; flake = false;
}; };
inputs.ntv2-gst-src = {
type = "github";
owner = "aja-video";
repo = "ntv2-gst";
flake = false;
};
outputs = { outputs = {
self, self,
nixpkgs, nixpkgs,
flake-utils, flake-utils,
ntv2-src, ntv2-src,
ntv2-gst-src,
}: }:
( (
flake-utils.lib.eachSystem ["x86_64-linux"] (system: let flake-utils.lib.eachSystem ["x86_64-linux"] (system: let
@ -24,6 +32,7 @@
inherit ntv2-src; inherit ntv2-src;
buildApps = false; buildApps = false;
}; };
inherit ntv2-gst-src;
}; };
}) })
) )

View File

@ -1,6 +1,6 @@
{ {
stdenv, stdenv,
fetchFromGitHub, ntv2-gst-src,
autoconf, autoconf,
automake, automake,
pkgconfig, pkgconfig,
@ -10,12 +10,7 @@
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "aja-ntv2-gst"; name = "aja-ntv2-gst";
src = fetchFromGitHub { src = ntv2-gst-src;
owner = "aja-video";
repo = "ntv2-gst";
rev = "refs/heads/master";
hash = "sha256-90TdrsnO5LatLD4dwivOnZG4tGJmNs2tdAsrL7eQF8g=";
};
sourceRoot = "source/gst-plugin"; sourceRoot = "source/gst-plugin";
patches = [./no.patch]; patches = [./no.patch];