Skip to content

Commit 0e06e6f

Browse files
committed
nss_latest: 3.94 -> 3.95
- https://github.com/nss-dev/nss/blob/NSS_3_95_RTM/doc/rst/releases/nss_3_95.rst - switch to fetching from github, because they forgot/failed to upload a release tarball (again)
1 parent 1156cd9 commit 0e06e6f

3 files changed

Lines changed: 14 additions & 16 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import ./generic.nix {
22
version = "3.90";
3-
hash = "sha256-ms1lNMQdjq0Z/Kb8s//+0vnwnEN8PXn+5qTuZoqqk7Y=";
3+
hash = "sha256-ZEG6ZcEymQ8Yw02ziT2LFWuvwZ1rRuT93rRHGYM22yQ=";
44
}

pkgs/development/libraries/nss/generic.nix

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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:

pkgs/development/libraries/nss/latest.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
# Example: nix-shell ./maintainers/scripts/update.nix --argstr package cacert
66

77
import ./generic.nix {
8-
version = "3.94";
9-
hash = "sha256-RjrhgO6eXunjrU9ikyZlfiNngMyGVXKpMKFlIKutndg=";
8+
version = "3.95";
9+
hash = "sha256-qgSbzlRbU+gElC2ae3FEGRUFSM1JHd/lNGNXC0x4xt4=";
1010
}

0 commit comments

Comments
 (0)