diff options
author | Luflosi <luflosi@luflosi.de> | 2023-11-27 23:22:49 +0100 |
---|---|---|
committer | Luflosi <luflosi@luflosi.de> | 2023-11-27 23:37:35 +0100 |
commit | f563b8bb66c4fa757913ad5a7a913547f964da85 (patch) | |
tree | 54d38c739c71d26c611254f55db05954ac13aad6 /pkgs/games/teeworlds | |
parent | 4716d207e946072d77a9c54fdfa4df238da14476 (diff) |
teeworlds: fix build on Darwin
The Cocoa dependency is also needed when not building the Client. The Carbon dependency does not seem to be needed at all. The libGLU dependency does not currently build on macOS because of one of its transitive dependencies but teeworlds compiles and runs fine without libGLU on macOS, so just make this dependency Linux-only.
Diffstat (limited to 'pkgs/games/teeworlds')
-rw-r--r-- | pkgs/games/teeworlds/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/games/teeworlds/default.nix b/pkgs/games/teeworlds/default.nix index a915832fdbe90..7189d5cbef209 100644 --- a/pkgs/games/teeworlds/default.nix +++ b/pkgs/games/teeworlds/default.nix @@ -1,7 +1,6 @@ { fetchFromGitHub, lib, stdenv, cmake, pkg-config, python3, alsa-lib , libX11, libGLU, SDL2, lua5_3, zlib, freetype, wavpack, icoutils , nixosTests -, Carbon , Cocoa , buildClient ? true }: @@ -45,17 +44,16 @@ stdenv.mkDerivation rec { buildInputs = [ python3 lua5_3 zlib + ] ++ lib.optionals stdenv.isDarwin [ + Cocoa ] ++ lib.optionals buildClient ([ - libGLU SDL2 freetype wavpack ] ++ lib.optionals stdenv.isLinux [ + libGLU alsa-lib libX11 - ] ++ lib.optionals stdenv.isDarwin [ - Carbon - Cocoa ]); cmakeFlags = [ |