about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorTristan Ross <tristan.ross@midstall.com>2024-06-06 15:20:02 -0700
committerTristan Ross <tristan.ross@midstall.com>2024-06-06 15:20:02 -0700
commit04f7ef92911dfa1872a616b548caf2459044f4ed (patch)
treef0cd5290f5dbaa6bfb541d2f5953958c49126279 /pkgs/games
parent0fdf6e29177a68cd6d4307f2a57b8cce109af0b3 (diff)
quake3e: fix compiling for aarch64
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/quake3/quake3e/default.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/games/quake3/quake3e/default.nix b/pkgs/games/quake3/quake3e/default.nix
index de6a842cc1332..1ad03d494ab03 100644
--- a/pkgs/games/quake3/quake3e/default.nix
+++ b/pkgs/games/quake3/quake3e/default.nix
@@ -15,7 +15,11 @@
 , copyDesktopItems
 , makeDesktopItem
 }:
-
+let
+  arch =
+    /**/ if stdenv.hostPlatform.isx86_64 then "x64"
+    else stdenv.hostPlatform.parsed.cpu.name;
+in
 stdenv.mkDerivation rec {
   pname = "Quake3e";
   version = "2022-04-01-dev";
@@ -52,8 +56,8 @@ stdenv.mkDerivation rec {
   installPhase = ''
     runHook preInstall
     make install DESTDIR=$out/lib
-    makeWrapper $out/lib/quake3e.x64 $out/bin/quake3e
-    makeWrapper $out/lib/quake3e.ded.x64 $out/bin/quake3e.ded
+    makeWrapper $out/lib/quake3e.${arch} $out/bin/quake3e
+    makeWrapper $out/lib/quake3e.ded.${arch} $out/bin/quake3e.ded
     runHook postInstall
   '';
 
@@ -72,8 +76,5 @@ stdenv.mkDerivation rec {
     license = licenses.gpl2;
     platforms = platforms.linux;
     maintainers = with maintainers; [ pmiddend ];
-    badPlatforms = platforms.aarch64;
-    # never built on aarch64-linux since first introduction in nixpkgs
-    broken = stdenv.isLinux && stdenv.isAarch64;
   };
 }