Compare commits
No commits in common. "9e1beef1c8b00e60f34f53de153273a91dd1128f" and "eb4b9b38d1091755c4c12a1b0e9a5e5c7e2ceb16" have entirely different histories.
9e1beef1c8
...
eb4b9b38d1
|
@ -1,14 +1,14 @@
|
||||||
{
|
{
|
||||||
stdenv,
|
stdenv,
|
||||||
|
callPackage,
|
||||||
lib,
|
lib,
|
||||||
cmake,
|
pkgs,
|
||||||
aja-src,
|
|
||||||
buildApps ? true,
|
buildApps ? true,
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ajantv2-dev";
|
name = "ajantv2-dev";
|
||||||
src = aja-src;
|
src = callPackage ./src.nix {};
|
||||||
nativeBuildInputs = [cmake];
|
nativeBuildInputs = [pkgs.cmake];
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
[
|
[
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
callPackage,
|
||||||
stdenv,
|
stdenv,
|
||||||
nukeReferences,
|
nukeReferences,
|
||||||
kernel,
|
kernel,
|
||||||
aja-src,
|
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ajantv2-driver-${kernel.version}";
|
name = "ajantv2-driver-${kernel.version}";
|
||||||
src = aja-src;
|
src = callPackage ./src.nix {};
|
||||||
patches = [./lol.patch ./newkernels.patch];
|
patches = [./lol.patch ./newkernels.patch];
|
||||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||||
buildInputs = [nukeReferences];
|
buildInputs = [nukeReferences];
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
{ pkgs }: pkgs.fetchFromGitHub {
|
||||||
|
owner = "aja-video";
|
||||||
|
repo = "ntv2";
|
||||||
|
rev = "refs/heads/main";
|
||||||
|
hash = "sha256-rXjKDhQcZwAxsMjCoL21gpWeLWyIXyK/1y+78mhKgeo=";
|
||||||
|
}
|
56
flake.lock
56
flake.lock
|
@ -1,38 +1,5 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"aja-ntv2": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1662565853,
|
|
||||||
"narHash": "sha256-rXjKDhQcZwAxsMjCoL21gpWeLWyIXyK/1y+78mhKgeo=",
|
|
||||||
"owner": "aja-video",
|
|
||||||
"repo": "ntv2",
|
|
||||||
"rev": "3a1e91f740e36e43a1ec74ff446a097330e87220",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "aja-video",
|
|
||||||
"repo": "ntv2",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1694529238,
|
|
||||||
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"id": "flake-utils",
|
|
||||||
"type": "indirect"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1694499547,
|
"lastModified": 1694499547,
|
||||||
|
@ -48,9 +15,8 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"aja-ntv2": "aja-ntv2",
|
"nixpkgs": "nixpkgs",
|
||||||
"flake-utils": "flake-utils",
|
"utils": "utils"
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
|
@ -67,6 +33,24 @@
|
||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1694529238,
|
||||||
|
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
35
flake.nix
35
flake.nix
|
@ -1,42 +1,27 @@
|
||||||
{
|
{
|
||||||
description = "AJA video card software";
|
description = "AJA video card software";
|
||||||
inputs.aja-ntv2 = {
|
inputs.utils.url = "github:numtide/flake-utils";
|
||||||
url = "github:aja-video/ntv2";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
flake-utils,
|
utils,
|
||||||
aja-ntv2,
|
}: (
|
||||||
}:
|
utils.lib.eachSystem ["x86_64-linux"] (system: let
|
||||||
(
|
|
||||||
flake-utils.lib.eachSystem ["x86_64-linux"] (system: let
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
packages.aja-ntv2-gst = pkgs.callPackage ./ntv2-gst.nix {
|
packages.aja-ntv2-gst = pkgs.callPackage ./ntv2-gst.nix {
|
||||||
ajantv2 = pkgs.callPackage ./aja-ntv2/default.nix {
|
ajantv2 = pkgs.callPackage ./aja-ntv2/default.nix { buildApps = false; };
|
||||||
aja-src = aja-ntv2;
|
|
||||||
buildApps = false;
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
})
|
|
||||||
)
|
|
||||||
// flake-utils.lib.eachDefaultSystem (system: let
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
inherit system;
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
formatter = pkgs.alejandra;
|
formatter = pkgs.alejandra;
|
||||||
})
|
})
|
||||||
// {
|
) // {
|
||||||
overlays.default = final: prev: {
|
overlays.default = (final: prev: {
|
||||||
ajantv-utils = final.callPackage ./aja-ntv2/default.nix {aja-src = aja-ntv2;};
|
ajantv-utils = final.callPackage ./aja-ntv2/default.nix {};
|
||||||
ajantv-driver = final.linuxPackages.callPackage ./aja-ntv2/driver.nix {aja-src = aja-ntv2;};
|
ajantv-driver = final.linuxPackages.callPackage ./aja-ntv2/driver.nix {};
|
||||||
aja-ntv2-gst = self.packages.${prev.system}.aja-ntv2-gst;
|
aja-ntv2-gst = self.packages.${prev.system}.aja-ntv2-gst;
|
||||||
};
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
{
|
{
|
||||||
stdenv,
|
stdenv,
|
||||||
|
pkgs,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
autoconf,
|
|
||||||
automake,
|
|
||||||
pkgconfig,
|
|
||||||
libtool,
|
|
||||||
gst_all_1,
|
|
||||||
ajantv2,
|
ajantv2,
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
@ -19,7 +15,7 @@ stdenv.mkDerivation {
|
||||||
sourceRoot = "source/gst-plugin";
|
sourceRoot = "source/gst-plugin";
|
||||||
patches = [./no.patch];
|
patches = [./no.patch];
|
||||||
|
|
||||||
nativeBuildInputs = [autoconf automake pkgconfig libtool gst_all_1.gst-plugins-base ajantv2];
|
nativeBuildInputs = with pkgs; [autoconf automake pkgconfig libtool gst_all_1.gst-plugins-base ajantv2];
|
||||||
GST_NTV2 = "${ajantv2}/include";
|
GST_NTV2 = "${ajantv2}/include";
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
|
Loading…
Reference in New Issue