Browse Source

Merge pull request #52021 from marius851000/fltrator

fltrator: init at 2.3
nim-0.20.0
Sarah Brofeldt 3 years ago committed by GitHub
parent
commit
969149302c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      maintainers/maintainer-list.nix
  2. 45
      pkgs/games/fltrator/default.nix
  3. 2
      pkgs/top-level/all-packages.nix

5
maintainers/maintainer-list.nix

@ -2905,6 +2905,11 @@
email = "markus@wotringer.de";
name = "Markus Wotringer";
};
marius851000 = {
email = "mariusdavid@laposte.net";
name = "Marius David";
github = "marius851000";
};
marsam = {
email = "marsam@users.noreply.github.com";
github = "marsam";

45
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;
};
}

2
pkgs/top-level/all-packages.nix

@ -20975,6 +20975,8 @@ in
exult = callPackage ../games/exult { };
fltrator = callPackage ../games/fltrator { };
factorio = callPackage ../games/factorio { releaseType = "alpha"; };
factorio-experimental = factorio.override { releaseType = "alpha"; experimental = true; };

Loading…
Cancel
Save