diff options
author | Ryan Burns <rtburns@protonmail.com> | 2020-11-01 20:29:29 -0800 |
---|---|---|
committer | Ryan Burns <rtburns@protonmail.com> | 2020-11-01 20:37:48 -0800 |
commit | eed2008a2de97454fd10a928c537c63acdb00b2c (patch) | |
tree | 7bd1e537df7f30b926de32d5f9a0639c7e9f5cc2 /pkgs/development/libraries/nss | |
parent | 533965957eaf8b7a23433ec178c09faa11a682a2 (diff) | |
download | nixpkgs-eed2008a2de97454fd10a928c537c63acdb00b2c.tar nixpkgs-eed2008a2de97454fd10a928c537c63acdb00b2c.tar.gz nixpkgs-eed2008a2de97454fd10a928c537c63acdb00b2c.tar.bz2 nixpkgs-eed2008a2de97454fd10a928c537c63acdb00b2c.tar.lz nixpkgs-eed2008a2de97454fd10a928c537c63acdb00b2c.tar.xz nixpkgs-eed2008a2de97454fd10a928c537c63acdb00b2c.tar.zst nixpkgs-eed2008a2de97454fd10a928c537c63acdb00b2c.zip |
nss: fix build on ppc64[le]
NSS configure scripts use the abbreviated form ppc64/ppc64le: https://github.com/nss-dev/nss/blob/NSS_3_57_RTM/coreconf/config.gypi#L209 Whereas nixpkgs uses the longer form: `nix eval nixpkgs.pkgsCross.powernv.hostPlatform.parsed.cpu.name` `powerpc64le`
Diffstat (limited to 'pkgs/development/libraries/nss')
-rw-r--r-- | pkgs/development/libraries/nss/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/libraries/nss/default.nix b/pkgs/development/libraries/nss/default.nix index e9ca475802d..dad0d4cfe1b 100644 --- a/pkgs/development/libraries/nss/default.nix +++ b/pkgs/development/libraries/nss/default.nix @@ -68,6 +68,9 @@ in stdenv.mkDerivation rec { else if platform.isx86_32 then "ia32" else if platform.isAarch32 then "arm" else if platform.isAarch64 then "arm64" + else if platform.isPower && platform.is64bit then ( + if platform.isLittleEndian then "ppc64le" else "ppc64" + ) else platform.parsed.cpu.name; # yes, this is correct. nixpkgs uses "host" for the platform the binary will run on whereas nss uses "host" for the platform that the build is running on target = getArch stdenv.hostPlatform; |