2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, fltk, which, libjpeg }:
|
2018-12-14 09:35:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "fltrator";
|
2018-12-14 09:35:10 +00:00
|
|
|
version = "2.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/fltrator/fltrator-${version}-code.zip";
|
|
|
|
sha256 = "125aqq1sfrm0c9cm6gyylwdmc8xrb0rjf563xvw7q28sdbl6ayp7";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ fltk libjpeg ];
|
|
|
|
nativeBuildInputs = [ unzip which ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/fltrator.cxx\
|
|
|
|
--replace 'home += "fltrator/"' "home = \"$out/fltrator/\""
|
|
|
|
substituteInPlace src/fltrator-landscape.cxx\
|
|
|
|
--replace 'home += "fltrator/"' "home = \"$out/fltrator/\""
|
|
|
|
substituteInPlace rsc/fltrator.desktop \
|
|
|
|
--replace 'Exec=fltrator' "Exec=$out/bin/fltrator"
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
|
|
|
makeFlags = [ "HOME=$(out)" "RSC_PATH=$(out)/fltrator"];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp rsc/fltrator.desktop $out/share/applications
|
|
|
|
mkdir -p $out/share/icons/hicolor/128x128/apps/
|
|
|
|
cp rsc/fltrator-128.png $out/share/icons/hicolor/128x128/apps/fltrator2.png
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Simple retro style arcade side-scroller game";
|
2024-10-21 17:58:13 +00:00
|
|
|
longDescription = ''
|
|
|
|
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.
|
|
|
|
It has ten different levels and a level editor to create new levels or modify the existing.
|
|
|
|
''; # from https://libregamewiki.org/FLTrator
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://fltrator.sourceforge.net/";
|
2018-12-14 09:35:10 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.marius851000 ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|