treewide: Purge stdenv.platform and top-level platform

Progress towards #27069
This commit is contained in:
John Ericson
2018-08-20 15:22:46 -04:00
parent f0d6e22b7f
commit 7d85ade0cc
12 changed files with 16 additions and 20 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
buildInputs = [ nukeReferences ];
makeFlags = concatStringsSep " " [
"ARCH=${stdenv.platform.kernelArch}" # Normally not needed, but the Makefile sets ARCH in a broken way.
"ARCH=${stdenv.hostPlatform.platform.kernelArch}" # Normally not needed, but the Makefile sets ARCH in a broken way.
"KSRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" # Makefile uses $(uname -r); breaks us.
];