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:
@@ -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 ""}
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user