mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
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
|
||||
(let hplip_arch =
|
||||
if builtins.currentSystem == "i686-linux"
|
||||
then "x86_32"
|
||||
else if builtins.currentSystem == "x86_64-linux"
|
||||
then "x86_64"
|
||||
else abort "Platform must be i686-linux or x86_64-linux!";
|
||||
if stdenv.system == "i686-linux" then "x86_32"
|
||||
else if stdenv.system == "x86_64-linux" then "x86_64"
|
||||
else abort "Platform must be i686-linux or x86_64-linux!";
|
||||
in
|
||||
''
|
||||
sh ${plugin} --noexec --keep
|
||||
|
Loading…
Reference in New Issue
Block a user