ajantv2-nix/flake.nix

44 lines
1.0 KiB
Nix
Raw Normal View History

2023-10-02 22:56:38 +01:00
{
description = "AJA video card software";
2023-10-17 08:49:56 +01:00
2023-10-17 08:47:19 +01:00
inputs.ntv2-src = {
2023-10-17 08:15:19 +01:00
type = "github";
owner = "aja-video";
repo = "ntv2";
2023-10-13 20:56:15 +01:00
flake = false;
};
2023-10-17 08:49:56 +01:00
inputs.ntv2-gst-src = {
type = "github";
owner = "aja-video";
repo = "ntv2-gst";
flake = false;
};
2023-10-02 22:56:38 +01:00
outputs = {
self,
nixpkgs,
flake-utils,
2023-10-17 08:47:19 +01:00
ntv2-src,
2023-10-17 08:49:56 +01:00
ntv2-gst-src,
2023-10-13 20:56:15 +01:00
}:
{
overlays.default = final: prev: {
2023-10-17 09:07:28 +01:00
ntv2 = final.callPackage ./ntv2 { inherit ntv2-src; };
2023-10-17 09:12:04 +01:00
ntv2-gst = final.callPackage ./ntv2-gst { inherit ntv2-gst-src; };
linuxPackages = prev.linuxPackages.extend
(linuxFinal: linuxPrev: {
2023-10-17 09:07:28 +01:00
ntv2-driver = linuxFinal.callPackage ./ntv2/driver.nix { inherit ntv2-src; };
});
2023-10-02 22:56:38 +01:00
};
} // flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = import nixpkgs { inherit system; overlays = [ self.overlays.default ]; };
in {
packages = {
inherit (pkgs) ntv2 ntv2-gst;
inherit (pkgs.linuxPackages) ntv2-driver;
};
formatter = pkgs.alejandra;
});
2023-10-02 22:56:38 +01:00
}