Merge pull request #102428 from r-burns/nss

nss: fix build on ppc64[le]
This commit is contained in:
Michael Raskin
2020-11-15 09:42:19 +00:00
committed by GitHub

View File

@@ -71,6 +71,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;