diff options
author | André-Patrick Bubel <code@andre-bubel.de> | 2019-02-06 11:17:30 +0100 |
---|---|---|
committer | André-Patrick Bubel <code@andre-bubel.de> | 2019-02-06 11:18:18 +0100 |
commit | d7be766a050163f8fc4002866f0b3052df1d0dc9 (patch) | |
tree | e10cbb5bf35bac13cf25b346fa2d8ee1b14e5a40 /pkgs/games/crawl | |
parent | e06eb19de58bc75aee5f58eb7833f7536da7b145 (diff) |
crawl: Add option for sound support and enable it in tileMode by default
Diffstat (limited to 'pkgs/games/crawl')
-rw-r--r-- | pkgs/games/crawl/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/games/crawl/default.nix b/pkgs/games/crawl/default.nix index 392af49c38dc..8966623e2b82 100644 --- a/pkgs/games/crawl/default.nix +++ b/pkgs/games/crawl/default.nix @@ -1,6 +1,6 @@ { stdenv, lib, fetchFromGitHub, which, sqlite, lua5_1, perl, zlib, pkgconfig, ncurses -, dejavu_fonts, libpng, SDL2, SDL2_image, libGLU_combined, freetype, pngcrush, advancecomp -, tileMode ? false +, dejavu_fonts, libpng, SDL2, SDL2_image, SDL2_mixer, libGLU_combined, freetype, pngcrush, advancecomp +, tileMode ? false, enableSound ? tileMode }: stdenv.mkDerivation rec { @@ -21,7 +21,8 @@ stdenv.mkDerivation rec { # Still unstable with luajit buildInputs = [ lua5_1 zlib sqlite ncurses ] - ++ lib.optionals tileMode [ libpng SDL2 SDL2_image freetype libGLU_combined ]; + ++ lib.optionals tileMode [ libpng SDL2 SDL2_image freetype libGLU_combined ] + ++ lib.optional enableSound SDL2_mixer; preBuild = '' cd crawl-ref/source @@ -35,7 +36,8 @@ stdenv.mkDerivation rec { makeFlags = [ "prefix=$(out)" "FORCE_CC=cc" "FORCE_CXX=c++" "HOSTCXX=c++" "SAVEDIR=~/.crawl" "sqlite=${sqlite.dev}" - ] ++ lib.optional tileMode "TILES=y"; + ] ++ lib.optional tileMode "TILES=y" + ++ lib.optional enableSound "SOUND=y"; postInstall = lib.optionalString tileMode "mv $out/bin/crawl $out/bin/crawl-tiles"; |