mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
719105a413
It globs all versions of nv-codec-headers kept/needed on Nixpkgs. The default is kept at 9, as before.
33 lines
644 B
Nix
33 lines
644 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchgit
|
|
}:
|
|
|
|
{ pname ? "nv-codec-headers"
|
|
, version
|
|
, hash
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
inherit pname version;
|
|
|
|
src = fetchgit {
|
|
url = "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git";
|
|
rev = "n${version}";
|
|
inherit hash;
|
|
};
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
];
|
|
|
|
meta = {
|
|
description = "FFmpeg version of headers for NVENC";
|
|
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;
|
|
};
|
|
}
|