diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2019-08-14 13:46:33 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2019-08-14 13:46:33 +0200 |
commit | cff9e6429a4341e924594f5e057b03ca8101b314 (patch) | |
tree | f8c1a31c9ad11b4c417b9c331747f3b3dc47bdf4 /pkgs/games/opendune | |
parent | a6055b7d8705d3c3a008e67cde1d43cf5727f76b (diff) | |
parent | 8d56f2472e47a3f1f388b69c0ecc24421910d555 (diff) | |
download | nixpkgs-cff9e6429a4341e924594f5e057b03ca8101b314.tar nixpkgs-cff9e6429a4341e924594f5e057b03ca8101b314.tar.gz nixpkgs-cff9e6429a4341e924594f5e057b03ca8101b314.tar.bz2 nixpkgs-cff9e6429a4341e924594f5e057b03ca8101b314.tar.lz nixpkgs-cff9e6429a4341e924594f5e057b03ca8101b314.tar.xz nixpkgs-cff9e6429a4341e924594f5e057b03ca8101b314.tar.zst nixpkgs-cff9e6429a4341e924594f5e057b03ca8101b314.zip |
Merge staging-next into staging
Diffstat (limited to 'pkgs/games/opendune')
-rw-r--r-- | pkgs/games/opendune/default.nix | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/pkgs/games/opendune/default.nix b/pkgs/games/opendune/default.nix index 0f045faf371..d2f1e27b10e 100644 --- a/pkgs/games/opendune/default.nix +++ b/pkgs/games/opendune/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchFromGitHub, SDL, SDL_image, SDL_mixer }: +{ stdenv, lib, fetchFromGitHub, pkgconfig +, alsaLib, libpulseaudio, SDL2, SDL2_image, SDL2_mixer }: # - set the opendune configuration at ~/.config/opendune/opendune.ini: # [opendune] @@ -16,17 +17,30 @@ stdenv.mkDerivation rec { sha256 = "15rvrnszdy3db8s0dmb696l4isb3x2cpj7wcl4j09pdi59pc8p37"; }; - buildInputs = [ SDL SDL_image SDL_mixer ]; + configureFlags = [ + "--with-alsa=${lib.getLib alsaLib}/lib/libasound.so" + "--with-pulse=${lib.getLib libpulseaudio}/lib/libpulse.so" + ]; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ alsaLib libpulseaudio SDL2 SDL2_image SDL2_mixer ]; + + enableParallelBuilding = true; installPhase = '' - install -m 555 -D bin/opendune $out/bin/opendune + runHook preInstall + + install -Dm555 -t $out/bin bin/opendune + install -Dm444 -t $out/share/doc/opendune enhancement.txt README.txt + + runHook postInstall ''; meta = with stdenv.lib; { description = "Dune, Reinvented"; homepage = https://github.com/OpenDUNE/OpenDUNE; license = licenses.gpl2; - maintainers = [ maintainers.nand0p ]; - platforms = platforms.linux; + maintainers = with maintainers; [ nand0p ]; }; } |