diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-04-22 21:15:06 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-04-22 21:18:23 +0000 |
commit | b935ae5f3cfb2bb4f9a3746d284f156a6dece505 (patch) | |
tree | 5efe4e2e7a7723a737d0130a333b057c5e76df40 /nixpkgs/pkgs/games/fltrator | |
parent | dc9566e91c9453378c24e98b5737234364670df5 (diff) | |
parent | d26027792812fbfad4d0f451b5f47fdabf7fdeb9 (diff) | |
download | nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.tar nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.tar.gz nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.tar.bz2 nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.tar.lz nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.tar.xz nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.tar.zst nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.zip |
Merge commit 'd26027792812fbfad4d0f451b5f47fdabf7fdeb9'
Diffstat (limited to 'nixpkgs/pkgs/games/fltrator')
-rw-r--r-- | nixpkgs/pkgs/games/fltrator/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/fltrator/default.nix b/nixpkgs/pkgs/games/fltrator/default.nix new file mode 100644 index 000000000000..ef46ea840b79 --- /dev/null +++ b/nixpkgs/pkgs/games/fltrator/default.nix @@ -0,0 +1,45 @@ +{ stdenv, fetchurl, unzip, fltk, which, libjpeg }: + +stdenv.mkDerivation rec { + name = "fltrator-${version}"; + 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 + ''; + + meta = with stdenv.lib; { + description = "A simple retro style arcade side-scroller game."; + 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 + homepage = http://fltrator.sourceforge.net/; + platforms = platforms.linux; + maintainers = [ maintainers.marius851000 ]; + license = licenses.gpl3; + }; + +} |