Move ntv2 src to a flake input

This commit is contained in:
2023-10-13 20:56:15 +01:00
parent 2cbc0594f6
commit 9e1beef1c8
5 changed files with 46 additions and 21 deletions
+3 -3
View File
@@ -1,14 +1,14 @@
{
stdenv,
callPackage,
lib,
cmake,
aja-src,
buildApps ? true,
}:
stdenv.mkDerivation {
name = "ajantv2-dev";
src = callPackage ./src.nix {};
nativeBuildInputs = [ cmake ];
src = aja-src;
nativeBuildInputs = [cmake];
cmakeFlags =
[
+2 -2
View File
@@ -1,12 +1,12 @@
{
callPackage,
stdenv,
nukeReferences,
kernel,
aja-src,
}:
stdenv.mkDerivation {
name = "ajantv2-driver-${kernel.version}";
src = callPackage ./src.nix {};
src = aja-src;
patches = [./lol.patch ./newkernels.patch];
nativeBuildInputs = kernel.moduleBuildDependencies;
buildInputs = [nukeReferences];
-8
View File
@@ -1,8 +0,0 @@
{ fetchFromGitHub }:
fetchFromGitHub {
owner = "aja-video";
repo = "ntv2";
rev = "refs/heads/main";
hash = "sha256-rXjKDhQcZwAxsMjCoL21gpWeLWyIXyK/1y+78mhKgeo=";
}