summary refs log tree commit diff
path: root/pkgs/development/libraries/nss
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2017-01-25 16:13:04 +0100
committeraszlig <aszlig@redmoonstudios.org>2017-01-25 16:25:00 +0100
commitca7923f1117571cb13bd74b349156b963b4b7526 (patch)
treec4752275181eaea945738544e514e2b5bcfb7939 /pkgs/development/libraries/nss
parentf47757aaf03dd43cc953bdcb30feb015e94bf22a (diff)
downloadnixpkgs-ca7923f1117571cb13bd74b349156b963b4b7526.tar
nixpkgs-ca7923f1117571cb13bd74b349156b963b4b7526.tar.gz
nixpkgs-ca7923f1117571cb13bd74b349156b963b4b7526.tar.bz2
nixpkgs-ca7923f1117571cb13bd74b349156b963b4b7526.tar.lz
nixpkgs-ca7923f1117571cb13bd74b349156b963b4b7526.tar.xz
nixpkgs-ca7923f1117571cb13bd74b349156b963b4b7526.tar.zst
nixpkgs-ca7923f1117571cb13bd74b349156b963b4b7526.zip
nss: Provide a more stable URL for pkgconfig patch
Since 2bf0f84f1ff18057c5a2af0d35bc90c264b3e056, the patch isn't in our
repository anymore but being fetched from its origin.

However, the origin URL is always pointing to the latest master version
of Gentoo. This has the downside that whenever Gentoo changes the patch,
our build of NSS will be broken.

Also, I'm providing a comment here indicating what the patch does.

As to the reason *why* the patch is there, I vaguely remeber seeing a
few libraries/applications that depend on NSS relying that there's a
pkgconfig file.

After checking a few distros, they all seem to have it:

https://anonscm.debian.org/cgit/pkg-mozilla/nss.git/tree/debian?id=5306c4192d6bc0a2685842e9fd533196e7302297
https://apps.fedoraproject.org/packages/nss-devel/
https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/nss&id=3f7f54b357e23b7ac1cec849693334ad29be07d2

The issue is already reported upstream but hasn't been fixed yet:

https://bugzilla.mozilla.org/show_bug.cgi?id=530672

Tested by building nss on x86_64-linux (the hash didn't change anyway,
but just to be sure).

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/development/libraries/nss')
-rw-r--r--pkgs/development/libraries/nss/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/libraries/nss/default.nix b/pkgs/development/libraries/nss/default.nix
index fc933235e96..8621d60ca96 100644
--- a/pkgs/development/libraries/nss/default.nix
+++ b/pkgs/development/libraries/nss/default.nix
@@ -23,9 +23,13 @@ in stdenv.mkDerivation rec {
   '';
 
   patches =
-    [ # FIXME: what is this patch for? Do we still need it?
+    [ # Install a nss.pc (pkgconfig) file and nss-config script
+      # Upstream issue: https://bugzilla.mozilla.org/show_bug.cgi?id=530672
       (fetchurl {
-        url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/nss/files/nss-3.28-gentoo-fixups.patch";
+        name = "nss-3.28-gentoo-fixups.patch";
+        url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/"
+            + "dev-libs/nss/files/nss-3.28-gentoo-fixups.patch"
+            + "?id=05c31f8cca591b3ce8219e4def7c26c7b1b130d6";
         sha256 = "0z58axd1n7vq4kdp5mrb3dsg6di39a1g40s3shl6n2dzs14c1y2q";
       })
       # Based on http://patch-tracker.debian.org/patch/series/dl/nss/2:3.15.4-1/85_security_load.patch