cups-idprt-{barcode,mt888,mt890,sp900,tspl}: Fix missing attribute on `aarch64-linux`

`getAttr` has a slightly better performance but it's not possible to
throw with it so one would have to do `builtins.hasAttr` first which makes
that methods performance worse than string interpolation and `or throw`

Changed files
+35 -20
pkgs
by-name
cu
cups-idprt-barcode
cups-idprt-mt888
cups-idprt-mt890
cups-idprt-sp900
cups-idprt-tspl
+7 -4
pkgs/by-name/cu/cups-idprt-barcode/package.nix
···
installPhase =
let
-
arch = builtins.getAttr stdenvNoCC.hostPlatform.system {
-
x86_64-linux = "x64";
-
x86-linux = "x86";
-
};
+
arch =
+
{
+
x86_64-linux = "x64";
+
x86-linux = "x86";
+
}
+
."${stdenvNoCC.hostPlatform.system}"
+
or (throw "cups-idprt-barcode: No prebuilt filters for system: ${stdenvNoCC.hostPlatform.system}");
in
''
runHook preInstall
+7 -4
pkgs/by-name/cu/cups-idprt-mt888/package.nix
···
installPhase =
let
-
arch = builtins.getAttr stdenvNoCC.hostPlatform.system {
-
x86_64-linux = "x64";
-
x86-linux = "x86";
-
};
+
arch =
+
{
+
x86_64-linux = "x64";
+
x86-linux = "x86";
+
}
+
."${stdenvNoCC.hostPlatform.system}"
+
or (throw "cups-idprt-mt888: No prebuilt filters for system: ${stdenvNoCC.hostPlatform.system}");
in
''
runHook preInstall
+7 -4
pkgs/by-name/cu/cups-idprt-mt890/package.nix
···
installPhase =
let
-
arch = builtins.getAttr stdenvNoCC.hostPlatform.system {
-
x86_64-linux = "x64";
-
x86-linux = "x86";
-
};
+
arch =
+
{
+
x86_64-linux = "x64";
+
x86-linux = "x86";
+
}
+
."${stdenvNoCC.hostPlatform.system}"
+
or (throw "cups-idprt-mt890: No prebuilt filters for system: ${stdenvNoCC.hostPlatform.system}");
in
''
runHook preInstall
+7 -4
pkgs/by-name/cu/cups-idprt-sp900/package.nix
···
installPhase =
let
-
arch = builtins.getAttr stdenvNoCC.hostPlatform.system {
-
x86_64-linux = "x64";
-
x86-linux = "x86";
-
};
+
arch =
+
{
+
x86_64-linux = "x64";
+
x86-linux = "x86";
+
}
+
."${stdenvNoCC.hostPlatform.system}"
+
or (throw "cups-idprt-sp900: No prebuilt filters for system: ${stdenvNoCC.hostPlatform.system}");
in
''
runHook preInstall
+7 -4
pkgs/by-name/cu/cups-idprt-tspl/package.nix
···
installPhase =
let
-
arch = builtins.getAttr stdenvNoCC.hostPlatform.system {
-
x86_64-linux = "x64";
-
x86-linux = "x86";
-
};
+
arch =
+
{
+
x86_64-linux = "x64";
+
x86-linux = "x86";
+
}
+
."${stdenvNoCC.hostPlatform.system}"
+
or (throw "cups-idprt-tspl: No prebuilt filters for system: ${stdenvNoCC.hostPlatform.system}");
in
''
runHook preInstall