1 { lib, stdenv, fetchurl, unzip, fltk, which, libjpeg }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/fltrator/fltrator-${version}-code.zip";
9 sha256 = "125aqq1sfrm0c9cm6gyylwdmc8xrb0rjf563xvw7q28sdbl6ayp7";
12 buildInputs = [ fltk libjpeg ];
13 nativeBuildInputs = [ unzip which ];
16 substituteInPlace src/fltrator.cxx\
17 --replace 'home += "fltrator/"' "home = \"$out/fltrator/\""
18 substituteInPlace src/fltrator-landscape.cxx\
19 --replace 'home += "fltrator/"' "home = \"$out/fltrator/\""
20 substituteInPlace rsc/fltrator.desktop \
21 --replace 'Exec=fltrator' "Exec=$out/bin/fltrator"
26 makeFlags = [ "HOME=$(out)" "RSC_PATH=$(out)/fltrator"];
29 mkdir -p $out/share/applications
30 cp rsc/fltrator.desktop $out/share/applications
31 mkdir -p $out/share/icons/hicolor/128x128/apps/
32 cp rsc/fltrator-128.png $out/share/icons/hicolor/128x128/apps/fltrator2.png
36 description = "Simple retro style arcade side-scroller game";
38 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.
39 It has ten different levels and a level editor to create new levels or modify the existing.
40 ''; # from https://libregamewiki.org/FLTrator
41 homepage = "https://fltrator.sourceforge.net/";
42 platforms = platforms.linux;
43 maintainers = [ maintainers.marius851000 ];
44 license = licenses.gpl3;