11 stdenv.mkDerivation rec {
16 url = "mirror://sourceforge/fltrator/fltrator-${version}-code.zip";
17 sha256 = "125aqq1sfrm0c9cm6gyylwdmc8xrb0rjf563xvw7q28sdbl6ayp7";
30 substituteInPlace src/fltrator.cxx\
31 --replace 'home += "fltrator/"' "home = \"$out/fltrator/\""
32 substituteInPlace src/fltrator-landscape.cxx\
33 --replace 'home += "fltrator/"' "home = \"$out/fltrator/\""
34 substituteInPlace rsc/fltrator.desktop \
35 --replace 'Exec=fltrator' "Exec=$out/bin/fltrator"
42 "RSC_PATH=$(out)/fltrator"
46 mkdir -p $out/share/applications
47 cp rsc/fltrator.desktop $out/share/applications
48 mkdir -p $out/share/icons/hicolor/128x128/apps/
49 cp rsc/fltrator-128.png $out/share/icons/hicolor/128x128/apps/fltrator2.png
53 description = "Simple retro style arcade side-scroller game";
55 FLTrator is a simple retro style arcade side-scroller game in which you steer a spaceship through a landscape with hostile rockets and other obstacles.
56 It has ten different levels and a level editor to create new levels or modify the existing.
57 ''; # from https://libregamewiki.org/FLTrator
58 homepage = "https://fltrator.sourceforge.net/";
59 platforms = platforms.linux;
60 maintainers = [ maintainers.marius851000 ];
61 license = licenses.gpl3;