depot/third_party/nixpkgs/pkgs/by-name/nv/nv-codec-headers/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

38 lines
874 B
Nix

{
lib,
callPackage,
stdenvNoCC,
# Configurable options
majorVersion ? "9",
}:
let
sources = callPackage ./sources.nix { };
pick = {
"8" = sources.nv-codec-headers-8;
"9" = sources.nv-codec-headers-9;
"10" = sources.nv-codec-headers-10;
"11" = sources.nv-codec-headers-11;
"12" = sources.nv-codec-headers-12;
}.${majorVersion};
in
stdenvNoCC.mkDerivation {
inherit (pick) pname version src;
makeFlags = [
"PREFIX=$(out)"
];
passthru = {
inherit sources;
};
meta = {
description = "FFmpeg version of headers for NVENC - major version ${pick.version}";
homepage = "https://ffmpeg.org/";
downloadPage = "https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.all;
};
}