hplip: fix broken platforms
hack
This commit is contained in:
parent
729b764c53
commit
2e248040a6
@ -29,15 +29,16 @@ let
|
|||||||
src = ./hplip.state;
|
src = ./hplip.state;
|
||||||
};
|
};
|
||||||
|
|
||||||
hplipArch =
|
hplipPlatforms =
|
||||||
{
|
{
|
||||||
"i686-linux" = "x86_32";
|
"i686-linux" = "x86_32";
|
||||||
"x86_64-linux" = "x86_64";
|
"x86_64-linux" = "x86_64";
|
||||||
"arm6l-linux" = "arm32";
|
"armv6l-linux" = "arm32";
|
||||||
"arm7l-linux" = "arm32";
|
"armv7l-linux" = "arm32";
|
||||||
}."${stdenv.system}" or (abort "Unsupported platform ${stdenv.system}");
|
};
|
||||||
|
|
||||||
platforms = [ "i686-linux" "x86_64-linux" "armv6l-linux" "armv7l-linux" ];
|
hplipArch = hplipPlatforms."${stdenv.system}"
|
||||||
|
or (abort "Unsupported platform ${stdenv.system}");
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -108,7 +109,7 @@ stdenv.mkDerivation {
|
|||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
postInstall =
|
postInstall =
|
||||||
(stdenv.lib.optionalString (withPlugin && builtins.elem stdenv.system platforms)
|
(stdenv.lib.optionalString (withPlugin && builtins.hasAttr stdenv.system hplipPlatforms)
|
||||||
(let hplipArch =
|
(let hplipArch =
|
||||||
if stdenv.system == "i686-linux" then "x86_32"
|
if stdenv.system == "i686-linux" then "x86_32"
|
||||||
else if stdenv.system == "x86_64-linux" then "x86_64"
|
else if stdenv.system == "x86_64-linux" then "x86_64"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user