-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325517 from atorres1985-contrib/nv-codec-headers-…
…master nv-codec-headers: recreate under by-name (try 2)
- Loading branch information
Showing
5 changed files
with
84 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
fetchgit, | ||
}: | ||
|
||
let | ||
nv-codec-headers-template = | ||
{ | ||
version, | ||
hash, | ||
}: | ||
{ | ||
pname = "nv-codec-headers"; | ||
inherit version; | ||
src = fetchgit { | ||
url = "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git"; | ||
rev = "n${version}"; | ||
inherit hash; | ||
}; | ||
}; | ||
in | ||
{ | ||
nv-codec-headers-8 = nv-codec-headers-template { | ||
version = "8.2.15.2"; | ||
hash = "sha256-TKYT8vXqnUpq+M0grDeOR37n/ffqSWDYTrXIbl++BG4="; | ||
}; | ||
nv-codec-headers-9 = nv-codec-headers-template { | ||
version = "9.1.23.1"; | ||
hash = "sha256-kF5tv8Nh6I9x3hvSAdKLakeBVEcIiXFY6o6bD+tY2/U="; | ||
}; | ||
nv-codec-headers-10 = nv-codec-headers-template { | ||
version = "10.0.26.2"; | ||
hash = "sha256-BfW+fmPp8U22+HK0ZZY6fKUjqigWvOBi6DmW7SSnslg="; | ||
}; | ||
nv-codec-headers-11 = nv-codec-headers-template { | ||
version = "11.1.5.2"; | ||
hash = "sha256-KzaqwpzISHB7tSTruynEOJmSlJnAFK2h7/cRI/zkNPk="; | ||
}; | ||
nv-codec-headers-12 = nv-codec-headers-template { | ||
version = "12.1.14.0"; | ||
hash = "sha256-WJYuFmMGSW+B32LwE7oXv/IeTln6TNEeXSkquHh85Go="; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
pkgs/development/libraries/nv-codec-headers/make-nv-codec-headers.nix
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters