From 5153e0e49110d18c33b3926f23102220fd839e30 Mon Sep 17 00:00:00 2001 From: Sergei Dolgov Date: Sat, 15 May 2021 12:09:44 +0200 Subject: [PATCH] hplipWithPlugin: correct arch name for the plugin file on aarch64 Without this change, building hplipWithPlugin on aarch64 fails with: cp: cannot stat 'lj-aarch64.so': No such file or directory builder for '/nix/store/p0x02ppv0n1xj46wvik3p3cn4jikmr1q-hplip-3.20.11.drv' failed with exit code 1 This is because the corresponding file in the archive is actually called lj-arm64.so. hplipPlatforms exists to convert between the different names; this commit only changes the value to a correct one. --- pkgs/misc/drivers/hplip/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/misc/drivers/hplip/default.nix b/pkgs/misc/drivers/hplip/default.nix index 6a7eb35ae52..040c52aacb6 100644 --- a/pkgs/misc/drivers/hplip/default.nix +++ b/pkgs/misc/drivers/hplip/default.nix @@ -36,13 +36,13 @@ let x86_64-linux = "x86_64"; armv6l-linux = "arm32"; armv7l-linux = "arm32"; - aarch64-linux = "aarch64"; + aarch64-linux = "arm64"; }; hplipArch = hplipPlatforms.${stdenv.hostPlatform.system} or (throw "HPLIP not supported on ${stdenv.hostPlatform.system}"); - pluginArches = [ "x86_32" "x86_64" "arm32" "aarch64" ]; + pluginArches = [ "x86_32" "x86_64" "arm32" "arm64" ]; in