nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Revert "Merge pull request #325242 from flokli/revert-nv-codec-headers"

This reverts commit 4685e6f1a218c930dc364e6b5a4477766dfc9e0c, reversing
changes made to f99e3f27140c45813a2ecfaf226911988ec0d817.

Let's undo the undo first

+84 -74
+38
pkgs/by-name/nv/nv-codec-headers/package.nix
··· 1 + { 2 + lib, 3 + callPackage, 4 + stdenvNoCC, 5 + # Configurable options 6 + sources ? callPackage ./sources.nix { }, 7 + majorVersion ? "9", 8 + }: 9 + 10 + let 11 + pick = { 12 + "8" = sources.nv-codec-headers-8; 13 + "9" = sources.nv-codec-headers-9; 14 + "10" = sources.nv-codec-headers-10; 15 + "11" = sources.nv-codec-headers-11; 16 + "12" = sources.nv-codec-headers-12; 17 + }.${majorVersion}; 18 + in 19 + stdenvNoCC.mkDerivation { 20 + inherit (pick) pname version src; 21 + 22 + makeFlags = [ 23 + "PREFIX=$(out)" 24 + ]; 25 + 26 + passthru = { 27 + inherit sources; 28 + }; 29 + 30 + meta = { 31 + description = "FFmpeg version of headers for NVENC - version ${pick.version}"; 32 + homepage = "https://ffmpeg.org/"; 33 + downloadPage = "https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git"; 34 + license = with lib.licenses; [ mit ]; 35 + maintainers = with lib.maintainers; [ AndersonTorres ]; 36 + platforms = lib.platforms.all; 37 + }; 38 + }
+42
pkgs/by-name/nv/nv-codec-headers/sources.nix
··· 1 + { 2 + fetchgit, 3 + }: 4 + 5 + let 6 + nv-codec-headers-template = 7 + { 8 + version, 9 + hash, 10 + }: 11 + { 12 + pname = "nv-codec-headers"; 13 + inherit version; 14 + src = fetchgit { 15 + url = "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git"; 16 + rev = "n${version}"; 17 + inherit hash; 18 + }; 19 + }; 20 + in 21 + { 22 + nv-codec-headers-8 = nv-codec-headers-template { 23 + version = "8.2.15.2"; 24 + hash = "sha256-TKYT8vXqnUpq+M0grDeOR37n/ffqSWDYTrXIbl++BG4="; 25 + }; 26 + nv-codec-headers-9 = nv-codec-headers-template { 27 + version = "9.1.23.1"; 28 + hash = "sha256-kF5tv8Nh6I9x3hvSAdKLakeBVEcIiXFY6o6bD+tY2/U="; 29 + }; 30 + nv-codec-headers-10 = nv-codec-headers-template { 31 + version = "10.0.26.2"; 32 + hash = "sha256-BfW+fmPp8U22+HK0ZZY6fKUjqigWvOBi6DmW7SSnslg="; 33 + }; 34 + nv-codec-headers-11 = nv-codec-headers-template { 35 + version = "11.1.5.2"; 36 + hash = "sha256-KzaqwpzISHB7tSTruynEOJmSlJnAFK2h7/cRI/zkNPk="; 37 + }; 38 + nv-codec-headers-12 = nv-codec-headers-template { 39 + version = "12.1.14.0"; 40 + hash = "sha256-WJYuFmMGSW+B32LwE7oXv/IeTln6TNEeXSkquHh85Go="; 41 + }; 42 + }
-32
pkgs/development/libraries/nv-codec-headers/default.nix
··· 1 - { lib 2 - , fetchgit 3 - , stdenvNoCC 4 - }: 5 - 6 - let 7 - make-nv-codec-headers = (import ./make-nv-codec-headers.nix) { 8 - inherit lib fetchgit stdenvNoCC; 9 - }; 10 - in 11 - { 12 - nv-codec-headers-8 = make-nv-codec-headers { 13 - version = "8.2.15.2"; 14 - hash = "sha256-TKYT8vXqnUpq+M0grDeOR37n/ffqSWDYTrXIbl++BG4="; 15 - }; 16 - nv-codec-headers-9 = make-nv-codec-headers { 17 - version = "9.1.23.1"; 18 - hash = "sha256-kF5tv8Nh6I9x3hvSAdKLakeBVEcIiXFY6o6bD+tY2/U="; 19 - }; 20 - nv-codec-headers-10 = make-nv-codec-headers { 21 - version = "10.0.26.2"; 22 - hash = "sha256-BfW+fmPp8U22+HK0ZZY6fKUjqigWvOBi6DmW7SSnslg="; 23 - }; 24 - nv-codec-headers-11 = make-nv-codec-headers { 25 - version = "11.1.5.2"; 26 - hash = "sha256-KzaqwpzISHB7tSTruynEOJmSlJnAFK2h7/cRI/zkNPk="; 27 - }; 28 - nv-codec-headers-12 = make-nv-codec-headers { 29 - version = "12.1.14.0"; 30 - hash = "sha256-WJYuFmMGSW+B32LwE7oXv/IeTln6TNEeXSkquHh85Go="; 31 - }; 32 - }
-32
pkgs/development/libraries/nv-codec-headers/make-nv-codec-headers.nix
··· 1 - { lib 2 - , stdenvNoCC 3 - , fetchgit 4 - }: 5 - 6 - { pname ? "nv-codec-headers" 7 - , version 8 - , hash 9 - }: 10 - 11 - stdenvNoCC.mkDerivation { 12 - inherit pname version; 13 - 14 - src = fetchgit { 15 - url = "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git"; 16 - rev = "n${version}"; 17 - inherit hash; 18 - }; 19 - 20 - makeFlags = [ 21 - "PREFIX=$(out)" 22 - ]; 23 - 24 - meta = { 25 - description = "FFmpeg version of headers for NVENC"; 26 - homepage = "https://ffmpeg.org/"; 27 - downloadPage = "https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git"; 28 - license = with lib.licenses; [ mit ]; 29 - maintainers = with lib.maintainers; [ AndersonTorres ]; 30 - platforms = lib.platforms.all; 31 - }; 32 - }
+4 -10
pkgs/top-level/all-packages.nix
··· 23265 23265 nuspell = callPackage ../development/libraries/nuspell { }; 23266 23266 nuspellWithDicts = dicts: callPackage ../development/libraries/nuspell/wrapper.nix { inherit dicts; }; 23267 23267 23268 - # splicing magic 23269 - nv-codec-headers-versions = callPackages ../development/libraries/nv-codec-headers { }; 23270 - inherit (nv-codec-headers-versions) 23271 - nv-codec-headers-9 23272 - nv-codec-headers-10 23273 - nv-codec-headers-11 23274 - nv-codec-headers-12 23275 - ; 23276 - # A default nv-codec-headers to make people happy 23277 - nv-codec-headers = nv-codec-headers-versions.nv-codec-headers-9; 23268 + nv-codec-headers-9 = nv-codec-headers.override { majorVersion = "9"; }; 23269 + nv-codec-headers-10 = nv-codec-headers.override { majorVersion = "10"; }; 23270 + nv-codec-headers-11 = nv-codec-headers.override { majorVersion = "11"; }; 23271 + nv-codec-headers-12 = nv-codec-headers.override { majorVersion = "12"; }; 23278 23272 23279 23273 nvidiaCtkPackages = 23280 23274 callPackage ../by-name/nv/nvidia-container-toolkit/packages.nix