nss: Fix aarch64 build

This commit is contained in:
Tuomas Tynkkynen 2018-03-19 05:11:01 +02:00
parent 734323872a
commit 8254d2cfb0

View File

@ -2,6 +2,12 @@
let let
# Fix aarch64 build, shouldn't be needed after 3.35
aarch64Patch = fetchurl {
url = https://hg.mozilla.org/projects/nss/raw-rev/74e679158d1b;
sha256 = "1lhs4h32mb2al3z461yylk227nid769di1pdjr7p0kqm2z1qm3jq";
};
nssPEM = fetchurl { nssPEM = fetchurl {
url = http://dev.gentoo.org/~polynomial-c/mozilla/nss-3.15.4-pem-support-20140109.patch.xz; url = http://dev.gentoo.org/~polynomial-c/mozilla/nss-3.15.4-pem-support-20140109.patch.xz;
sha256 = "10ibz6y0hknac15zr6dw4gv9nb5r5z9ym6gq18j3xqx7v7n3vpdw"; sha256 = "10ibz6y0hknac15zr6dw4gv9nb5r5z9ym6gq18j3xqx7v7n3vpdw";
@ -23,6 +29,8 @@ in stdenv.mkDerivation rec {
prePatch = '' prePatch = ''
xz -d < ${nssPEM} | patch -p1 xz -d < ${nssPEM} | patch -p1
'' + stdenv.lib.optionalString stdenv.isAarch64 ''
(cd nss && patch -p1 < ${aarch64Patch})
''; '';
patches = patches =