25 pname = "snis_launcher";
26 version = "unstable-2021-10-17";
28 src = fetchFromGitHub {
30 repo = "space-nerds-in-space";
31 rev = "e70d3c63e33c940feb53c8d818ce2d8ea2aadf00";
32 sha256 = "sha256-HVCb1iFn7GWNpedtFCgLyd0It8s4PEmUwDfb8ap1TDc=";
36 substituteInPlace Makefile \
37 --replace "OPUSARCHIVE=libopus.a" "OPUSARCHIVE=" \
38 --replace "-I./opus-1.3.1/include" "-I${libopus.dev}/include/opus"
39 substituteInPlace snis_launcher \
40 --replace "PREFIX=." "PREFIX=$out"
41 substituteInPlace snis_text_to_speech.sh \
42 --replace "pico2wave" "${sox}/bin/pico2wave" \
43 --replace "espeak" "${espeak-classic}/bin/espeak" \
44 --replace "play" "${sox}/bin/play" \
45 --replace "aplay" "${alsa-utils}/bin/aplay" \
46 --replace "/bin/rm" "${coreutils}/bin/rm"
49 nativeBuildInputs = [ pkg-config openscad makeWrapper ];
50 buildInputs = [ coreutils portaudio libbsd libpng libvorbis SDL2 lua5_2 glew openssl picotts sox alsa-utils libopus libxcrypt ];
53 make models -j$NIX_BUILD_CORES
59 cp -R share $out/share
61 cp snis_launcher $out/bin/
62 # without this, snis_client crashes on Wayland
63 wrapProgram $out/bin/snis_client --set SDL_VIDEODRIVER x11
68 description = "Space Nerds In Space, a multi-player spaceship bridge simulator";
69 homepage = "https://smcameron.github.io/space-nerds-in-space/";
70 license = licenses.gpl2;
71 maintainers = with maintainers; [ alyaeanyx ];
72 platforms = platforms.linux;