Fix broken use of builtins.currentSystem
Packages should never use builtins.currentSystem.
This commit is contained in:
parent
30431e7160
commit
50f548771e
@ -56,11 +56,9 @@ stdenv.mkDerivation rec {
|
|||||||
''
|
''
|
||||||
+ (stdenv.lib.optionalString withPlugin
|
+ (stdenv.lib.optionalString withPlugin
|
||||||
(let hplip_arch =
|
(let hplip_arch =
|
||||||
if builtins.currentSystem == "i686-linux"
|
if stdenv.system == "i686-linux" then "x86_32"
|
||||||
then "x86_32"
|
else if stdenv.system == "x86_64-linux" then "x86_64"
|
||||||
else if builtins.currentSystem == "x86_64-linux"
|
else abort "Platform must be i686-linux or x86_64-linux!";
|
||||||
then "x86_64"
|
|
||||||
else abort "Platform must be i686-linux or x86_64-linux!";
|
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
sh ${plugin} --noexec --keep
|
sh ${plugin} --noexec --keep
|
||||||
|
Loading…
x
Reference in New Issue
Block a user