libpfm: use hostPlatform

(cherry picked from commit 08f5b419b9efc77db044f8c1d725632552617966)
This commit is contained in:
Matthew Bauer 2019-01-31 13:50:53 -05:00
parent ead13a3aca
commit 77d7d60d8c

View File

@ -12,8 +12,8 @@ stdenv.mkDerivation rec {
makeFlags = [
"PREFIX=${placeholder "out"}"
"LDCONFIG=true"
"ARCH=${stdenv.targetPlatform.uname.processor}"
"SYS=${stdenv.targetPlatform.uname.system}"
"ARCH=${stdenv.hostPlatform.uname.processor}"
"SYS=${stdenv.hostPlatform.uname.system}"
];
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];