From d63f0d3a6bda0976da98b4b9278b82b362424838 Mon Sep 17 00:00:00 2001 From: Jude Taylor Date: Tue, 20 Oct 2015 15:53:31 -0700 Subject: hplip: fix evaluation --- pkgs/misc/drivers/hplip/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkgs/misc/drivers') diff --git a/pkgs/misc/drivers/hplip/default.nix b/pkgs/misc/drivers/hplip/default.nix index 28ae8b25ca73..e381ea6b3e3a 100644 --- a/pkgs/misc/drivers/hplip/default.nix +++ b/pkgs/misc/drivers/hplip/default.nix @@ -35,6 +35,8 @@ let "arm7l-linux" = "arm32"; }."${stdenv.system}" or (abort "Unsupported platform ${stdenv.system}"); + platforms = [ "i686-linux" "x86_64-linux" "armv6l-linux" "armv7l-linux" ]; + in stdenv.mkDerivation { @@ -99,7 +101,7 @@ stdenv.mkDerivation { enableParallelBuilding = true; postInstall = - (stdenv.lib.optionalString withPlugin + (stdenv.lib.optionalString (withPlugin && builtins.elem stdenv.system platforms) (let hplip_arch = if stdenv.system == "i686-linux" then "x86_32" else if stdenv.system == "x86_64-linux" then "x86_64" -- cgit 1.4.1