diff options
author | Linus Heckemann <git@sphalerite.org> | 2017-05-28 15:13:44 +0100 |
---|---|---|
committer | Linus Heckemann <git@sphalerite.org> | 2017-05-28 15:31:57 +0100 |
commit | cf456b9a8aa735570f1ff82525fcf054688a3cc0 (patch) | |
tree | f6b4d34d933364563e76ee4f5dc2247873f502da /pkgs/games/xonotic/default.nix | |
parent | d0f2361bc1ffdff631fc7ebb9c2ec1b08b135898 (diff) |
xonotic: fix audio
This fixes #26117. Also allow easy switching to debug/profiling builds.
Diffstat (limited to 'pkgs/games/xonotic/default.nix')
-rw-r--r-- | pkgs/games/xonotic/default.nix | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/pkgs/games/xonotic/default.nix b/pkgs/games/xonotic/default.nix index 4c9cf1d010cc9..b6009ee72fd0d 100644 --- a/pkgs/games/xonotic/default.nix +++ b/pkgs/games/xonotic/default.nix @@ -27,11 +27,16 @@ stdenv.mkDerivation rec { sourceRoot = "Xonotic/source/darkplaces"; + # "debug", "release", "profile" + target = "release"; + + dontStrip = target != "release"; + buildPhase = '' DP_FS_BASEDIR="$out/share/xonotic" - make DP_FS_BASEDIR=$DP_FS_BASEDIR cl-release - make DP_FS_BASEDIR=$DP_FS_BASEDIR sdl-release - make DP_FS_BASEDIR=$DP_FS_BASEDIR sv-release + make DP_FS_BASEDIR=$DP_FS_BASEDIR cl-${target} + make DP_FS_BASEDIR=$DP_FS_BASEDIR sdl-${target} + make DP_FS_BASEDIR=$DP_FS_BASEDIR sv-${target} ''; enableParallelBuilding = true; @@ -52,8 +57,16 @@ stdenv.mkDerivation rec { dontPatchELF = true; postFixup = '' patchelf --add-needed ${curl.out}/lib/libcurl.so $out/bin/xonotic-dedicated - patchelf --add-needed ${curl.out}/lib/libcurl.so $out/bin/xonotic-sdl - patchelf --add-needed ${curl.out}/lib/libcurl.so $out/bin/xonotic-glx + patchelf \ + --add-needed ${curl.out}/lib/libcurl.so \ + --add-needed ${libvorbis}/lib/libvorbisfile.so \ + --add-needed ${libvorbis}/lib/libvorbis.so \ + $out/bin/xonotic-glx + patchelf \ + --add-needed ${curl.out}/lib/libcurl.so \ + --add-needed ${libvorbis}/lib/libvorbisfile.so \ + --add-needed ${libvorbis}/lib/libvorbis.so \ + $out/bin/xonotic-sdl ''; meta = { |