ajantv2-nix/flake.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

2023-10-02 22:56:38 +01:00
{
description = "AJA video card software";
2023-10-13 20:56:15 +01:00
inputs.aja-ntv2 = {
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-02 22:56:38 +01:00
outputs = {
self,
nixpkgs,
flake-utils,
2023-10-13 20:56:15 +01:00
aja-ntv2,
}:
(
flake-utils.lib.eachSystem ["x86_64-linux"] (system: let
pkgs = import nixpkgs {
inherit system;
};
in {
packages.aja-ntv2-gst = pkgs.callPackage ./ntv2-gst.nix {
ajantv2 = pkgs.callPackage ./aja-ntv2/default.nix {
aja-src = aja-ntv2;
buildApps = false;
};
};
})
)
// flake-utils.lib.eachDefaultSystem (system: let
2023-10-02 22:56:38 +01:00
pkgs = import nixpkgs {
inherit system;
};
in {
formatter = pkgs.alejandra;
})
2023-10-13 20:56:15 +01:00
// {
2023-10-13 18:04:54 +01:00
overlays.default = final: prev: {
2023-10-13 20:56:15 +01:00
ajantv-utils = final.callPackage ./aja-ntv2/default.nix {aja-src = aja-ntv2;};
ajantv-driver = final.linuxPackages.callPackage ./aja-ntv2/driver.nix {aja-src = aja-ntv2;};
2023-10-02 22:56:38 +01:00
aja-ntv2-gst = self.packages.${prev.system}.aja-ntv2-gst;
2023-10-13 18:04:54 +01:00
};
2023-10-02 22:56:38 +01:00
};
}