1 { stdenv, lib, fetchFromGitHub, pkg-config
2 , alsa-lib, libpulseaudio, SDL2, SDL2_image, SDL2_mixer }:
4 # - set the opendune configuration at ~/.config/opendune/opendune.ini:
6 # datadir=/path/to/opendune-data
7 # - download dune2 into [datadir] http://www.bestoldgames.net/eng/old-games/dune-2.php
9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 sha256 = "15rvrnszdy3db8s0dmb696l4isb3x2cpj7wcl4j09pdi59pc8p37";
21 "--with-alsa=${lib.getLib alsa-lib}/lib/libasound.so"
22 "--with-pulse=${lib.getLib libpulseaudio}/lib/libpulse.so"
25 nativeBuildInputs = [ pkg-config ];
27 buildInputs = [ alsa-lib libpulseaudio SDL2 SDL2_image SDL2_mixer ];
29 enableParallelBuilding = true;
34 install -Dm555 -t $out/bin bin/opendune
35 install -Dm444 -t $out/share/doc/opendune enhancement.txt README.txt
41 description = "Dune, Reinvented";
42 homepage = "https://github.com/OpenDUNE/OpenDUNE";
43 license = licenses.gpl2;
44 maintainers = with maintainers; [ ];