File tree Expand file tree Collapse file tree
pkgs/development/libraries/nss Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import ./generic.nix {
22 version = "3.90" ;
3- hash = "sha256-ms1lNMQdjq0Z/Kb8s//+0vnwnEN8PXn+5qTuZoqqk7Y =" ;
3+ hash = "sha256-ZEG6ZcEymQ8Yw02ziT2LFWuvwZ1rRuT93rRHGYM22yQ =" ;
44}
Original file line number Diff line number Diff line change 1- { version , hash } :
1+ { version , hash , github ? false } :
22{ lib
33, stdenv
4- , fetchurl
4+ , fetchFromGitHub
55, nspr
66, perl
77, zlib
@@ -26,8 +26,10 @@ stdenv.mkDerivation rec {
2626 pname = "nss" ;
2727 inherit version ;
2828
29- src = fetchurl {
30- url = "mirror://mozilla/security/nss/releases/NSS_${ underscoreVersion } _RTM/src/${ pname } -${ version } .tar.gz" ;
29+ src = fetchFromGitHub {
30+ owner = "nss-dev" ;
31+ repo = "nss" ;
32+ rev = "NSS_${ lib . replaceStrings [ "." ] [ "_" ] version } _RTM" ;
3133 inherit hash ;
3234 } ;
3335
@@ -50,25 +52,21 @@ stdenv.mkDerivation rec {
5052 ./remove-c25519-support.patch
5153 ] ;
5254
53- patchFlags = [ "-p0" ] ;
54-
5555 postPatch = ''
56- patchShebangs nss
56+ patchShebangs .
5757
58- for f in nss/ coreconf/config.gypi nss/ build.sh; do
58+ for f in coreconf/config.gypi build.sh; do
5959 substituteInPlace "$f" --replace "/usr/bin/env" "${ buildPackages . coreutils } /bin/env"
6060 done
6161
62- substituteInPlace nss/ coreconf/config.gypi --replace "/usr/bin/grep" "${ buildPackages . coreutils } /bin/env grep"
62+ substituteInPlace coreconf/config.gypi --replace "/usr/bin/grep" "${ buildPackages . coreutils } /bin/env grep"
6363 '' + lib . optionalString stdenv . hostPlatform . isDarwin ''
64- substituteInPlace nss/ coreconf/Darwin.mk --replace '@executable_path/$(notdir $@)' "$out/lib/\$(notdir \$@)"
65- substituteInPlace nss/ coreconf/config.gypi --replace "'DYLIB_INSTALL_NAME_BASE': '@executable_path'" "'DYLIB_INSTALL_NAME_BASE': '$out/lib'"
64+ substituteInPlace coreconf/Darwin.mk --replace '@executable_path/$(notdir $@)' "$out/lib/\$(notdir \$@)"
65+ substituteInPlace coreconf/config.gypi --replace "'DYLIB_INSTALL_NAME_BASE': '@executable_path'" "'DYLIB_INSTALL_NAME_BASE': '$out/lib'"
6666 '' ;
6767
6868 outputs = [ "out" "dev" "tools" ] ;
6969
70- preConfigure = "cd nss" ;
71-
7270 buildPhase =
7371 let
7472 getArch = platform :
Original file line number Diff line number Diff line change 55# Example: nix-shell ./maintainers/scripts/update.nix --argstr package cacert
66
77import ./generic.nix {
8- version = "3.94 " ;
9- hash = "sha256-RjrhgO6eXunjrU9ikyZlfiNngMyGVXKpMKFlIKutndg =" ;
8+ version = "3.95 " ;
9+ hash = "sha256-qgSbzlRbU+gElC2ae3FEGRUFSM1JHd/lNGNXC0x4xt4 =" ;
1010}
You can’t perform that action at this time.
0 commit comments