reewide: Purge all uses stdenv.system and top-level system
It is deprecated and will be removed after 18.09.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
let
|
||||
platform =
|
||||
if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" then
|
||||
if stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux" then
|
||||
"Linux"
|
||||
else
|
||||
throw "Mathematica requires i686-linux or x86_64 linux";
|
||||
@@ -70,7 +70,7 @@ stdenv.mkDerivation rec {
|
||||
]);
|
||||
|
||||
ldpath = stdenv.lib.makeLibraryPath buildInputs
|
||||
+ stdenv.lib.optionalString (stdenv.system == "x86_64-linux")
|
||||
+ stdenv.lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux")
|
||||
(":" + stdenv.lib.makeSearchPathOutput "lib" "lib64" buildInputs);
|
||||
|
||||
phases = "unpackPhase installPhase fixupPhase";
|
||||
|
||||
Reference in New Issue
Block a user