Skip to content

Commit 4271b75

Browse files
committed
pixelorama: add aarch64-linux support
1 parent 515d343 commit 4271b75

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pkgs/by-name/pi/pixelorama/package.nix

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
}:
2020

2121
let
22+
presets = {
23+
"i686-linux" = "Linux 32-bit";
24+
"x86_64-linux" = "Linux 64-bit";
25+
"aarch64-linux" = "Linux ARM64";
26+
};
2227
preset =
23-
if stdenv.isLinux then
24-
if stdenv.is64bit then "Linux 64-bit" else "Linux 32-bit"
25-
else if stdenv.isDarwin then
26-
"macOS"
27-
else
28-
throw "unsupported platform";
28+
presets.${stdenv.hostPlatform.system}
29+
or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
2930

3031
godot_version_folder = lib.replaceStrings [ "-" ] [ "." ] godot_4.version;
3132
in
@@ -95,6 +96,7 @@ stdenv.mkDerivation (finalAttrs: {
9596
platforms = [
9697
"i686-linux"
9798
"x86_64-linux"
99+
"aarch64-linux"
98100
];
99101
maintainers = with maintainers; [ felschr ];
100102
mainProgram = "pixelorama";

0 commit comments

Comments
 (0)