diff options
author | sternenseemann | 2024-09-27 11:41:25 +0200 |
---|---|---|
committer | sternenseemann | 2024-09-27 11:41:25 +0200 |
commit | b341506a8d18d8d5d47ed4dbb201c8ed04b183d1 (patch) | |
tree | aa477119c53f4d71f3cfceb0f827b92e1c13351b /pkgs/games/ecwolf/default.nix | |
parent | b6b063bdc265990fb87781682da974578b16443c (diff) | |
parent | fdadb5f0df5d2641c7e4494f4defc31f1e9cb8c0 (diff) |
Merge branch master into haskell-updates
Conflicts from #341407 resolved.
Diffstat (limited to 'pkgs/games/ecwolf/default.nix')
-rw-r--r-- | pkgs/games/ecwolf/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/games/ecwolf/default.nix b/pkgs/games/ecwolf/default.nix index 8bbbc53a0dcd..77ccc9a929c3 100644 --- a/pkgs/games/ecwolf/default.nix +++ b/pkgs/games/ecwolf/default.nix @@ -25,16 +25,16 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ cmake pkg-config ] - ++ lib.optionals stdenv.isDarwin [ makeWrapper ]; + ++ lib.optionals stdenv.hostPlatform.isDarwin [ makeWrapper ]; buildInputs = [ zlib bzip2 libjpeg SDL2 SDL2_net SDL2_mixer gtk3 ]; - NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework AppKit"; + NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-framework AppKit"; # ECWolf installs its binary to the games/ directory, but Nix only adds bin/ # directories to the PATH. - postInstall = lib.optionalString stdenv.isLinux '' + postInstall = lib.optionalString stdenv.hostPlatform.isLinux '' mv "$out/games" "$out/bin" - '' + lib.optionalString stdenv.isDarwin '' + '' + lib.optionalString stdenv.hostPlatform.isDarwin '' mkdir -p $out/{Applications,bin} cp -R ecwolf.app $out/Applications makeWrapper $out/{Applications/ecwolf.app/Contents/MacOS,bin}/ecwolf |