lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 18.03-beta 50 lines 1.4 kB view raw
1{ stdenv, fetchFromGitHub, cmake, zdoom, makeWrapper 2, openal, fluidsynth, soundfont-fluid, libGL, SDL2 3, bzip2, zlib, libjpeg, libsndfile, mpg123, game-music-emu }: 4 5stdenv.mkDerivation rec { 6 name = "gzdoom-${version}"; 7 version = "3.1.0"; 8 9 src = fetchFromGitHub { 10 owner = "coelckers"; 11 repo = "gzdoom"; 12 rev = "g${version}"; 13 sha256 = "02287xvlk4a07ssm9y9h5vfsvdssshz13n5bbz13pfcani5d9flv"; 14 }; 15 16 nativeBuildInputs = [ cmake makeWrapper ]; 17 buildInputs = [ 18 SDL2 libGL openal fluidsynth bzip2 zlib libjpeg libsndfile mpg123 19 game-music-emu 20 ]; 21 22 enableParallelBuilding = true; 23 24 NIX_CFLAGS_LINK = [ "-lopenal" "-lfluidsynth" ]; 25 26 preConfigure = '' 27 sed -i \ 28 -e "s@/usr/share/sounds/sf2/@${soundfont-fluid}/share/soundfonts/@g" \ 29 -e "s@FluidR3_GM.sf2@FluidR3_GM2-2.sf2@g" \ 30 src/sound/mididevices/music_fluidsynth_mididevice.cpp 31 ''; 32 33 installPhase = '' 34 install -Dm755 gzdoom "$out/lib/gzdoom/gzdoom" 35 for i in *.pk3; do 36 install -Dm644 "$i" "$out/lib/gzdoom/$i" 37 done 38 mkdir $out/bin 39 makeWrapper $out/lib/gzdoom/gzdoom $out/bin/gzdoom 40 ''; 41 42 meta = with stdenv.lib; { 43 homepage = https://github.com/coelckers/gzdoom; 44 description = "A Doom source port based on ZDoom. It features an OpenGL renderer and lots of new features"; 45 license = licenses.gpl3; 46 platforms = platforms.linux; 47 maintainers = with maintainers; [ lassulus ]; 48 }; 49} 50