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:
John Ericson
2018-08-20 15:11:29 -04:00
parent 94f71d800d
commit 2c2f1e37d4
263 changed files with 594 additions and 577 deletions

View File

@@ -1,9 +1,9 @@
{stdenv, fetchurl}:
let
folder = if stdenv.system == "i686-linux" then "i686"
else if stdenv.system == "x86_64-linux" then "x86_64"
else throw "Unsupported system: ${stdenv.system}";
folder = if stdenv.hostPlatform.system == "i686-linux" then "i686"
else if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64"
else throw "Unsupported system: ${stdenv.hostPlatform.system}";
in
stdenv.mkDerivation {
name = "pngout-20130221";
@@ -17,9 +17,9 @@ stdenv.mkDerivation {
mkdir -p $out/bin
cp ${folder}/pngout $out/bin
${if stdenv.system == "i686-linux" then ''
${if stdenv.hostPlatform.system == "i686-linux" then ''
patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/bin/pngout
'' else if stdenv.system == "x86_64-linux" then ''
'' else if stdenv.hostPlatform.system == "x86_64-linux" then ''
patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux-x86-64.so.2 $out/bin/pngout
'' else ""}
'';