summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-11-13 06:47:08 -0800
committerAdam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com>2023-11-17 08:07:34 +0000
commitc7e0f6b9050553dfa8dff259a0536326ac43b0ff (patch)
tree6862049af64b6ccf9911f5cb54f1651aaf07a182 /pkgs/games
parent6a689e72efffde73cc2c6cfa7e142a8d7f8feafd (diff)
downloadnixpkgs-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.tar
nixpkgs-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.tar.gz
nixpkgs-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.tar.bz2
nixpkgs-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.tar.lz
nixpkgs-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.tar.xz
nixpkgs-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.tar.zst
nixpkgs-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.zip
treewide: s_targetPlatform_hostPlatform_ in non-compiler packages
stdenv.targetPlatform really shouldn't be used by software that
doesn't generate or manipulate binaries.  I reviewed all uses of
targetPlatform outside of pkgs/development/compilers and pkgs/stdenv
and replaced those which weren't involved in something which fits
these criteria.
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/cataclysm-dda/common.nix2
-rw-r--r--pkgs/games/dwarf-fortress/dwarf-therapist/wrapper.nix2
-rw-r--r--pkgs/games/enigma/default.nix2
3 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/games/cataclysm-dda/common.nix b/pkgs/games/cataclysm-dda/common.nix
index 41579b52710..fb54efee1dd 100644
--- a/pkgs/games/cataclysm-dda/common.nix
+++ b/pkgs/games/cataclysm-dda/common.nix
@@ -53,7 +53,7 @@ stdenv.mkDerivation {
   ] ++ optionals stdenv.isDarwin [
     "NATIVE=osx"
     "CLANG=1"
-    "OSX_MIN=${stdenv.targetPlatform.darwinMinVersion}"
+    "OSX_MIN=${stdenv.hostPlatform.darwinMinVersion}"
   ];
 
   postInstall = optionalString tiles
diff --git a/pkgs/games/dwarf-fortress/dwarf-therapist/wrapper.nix b/pkgs/games/dwarf-fortress/dwarf-therapist/wrapper.nix
index dad59953533..eaf391bbe6b 100644
--- a/pkgs/games/dwarf-fortress/dwarf-therapist/wrapper.nix
+++ b/pkgs/games/dwarf-fortress/dwarf-therapist/wrapper.nix
@@ -2,7 +2,7 @@
 
 let
   platformSlug =
-    if stdenv.targetPlatform.is32bit then
+    if stdenv.hostPlatform.is32bit then
       "linux32" else "linux64";
   inifile = "linux/v0.${dwarf-fortress.baseVersion}.${dwarf-fortress.patchVersion}_${platformSlug}.ini";
 
diff --git a/pkgs/games/enigma/default.nix b/pkgs/games/enigma/default.nix
index c9f16918b49..e2e9ca1338c 100644
--- a/pkgs/games/enigma/default.nix
+++ b/pkgs/games/enigma/default.nix
@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
     description = "Puzzle game inspired by Oxyd on the Atari ST and Rock'n'Roll on the Amiga";
     license = with licenses; [ gpl2 free ]; # source + bundles libs + art
     platforms = platforms.unix;
-    broken = stdenv.targetPlatform.isDarwin;
+    broken = stdenv.hostPlatform.isDarwin;
     maintainers = with maintainers; [ iblech ];
     homepage = "https://www.nongnu.org/enigma/";
   };