-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fltrator : added patch to made fltrator-landscape use the correct data directory. fltrator : corrected an error with meta fltrator : enhancement based on srhb suggestion fltrator : add .desktop fltrator : enanced the build file, based on suggestion of jtojnar & srhb fltrator : use nativeBuildInput rather that buildInputs. suggested by jtojnar fltrator : desktop file is now pointing to the specific binary, and has icon. fltrator : deleted the manual unpack phase
- Loading branch information
1 parent
562b7a7
commit 5eb428e
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2640,6 +2640,11 @@ | |
email = "[email protected]"; | ||
name = "Markus Wotringer"; | ||
}; | ||
marius851000 = { | ||
email = "[email protected]"; | ||
name = "Marius David"; | ||
github = "marius851000"; | ||
}; | ||
marsam = { | ||
email = "[email protected]"; | ||
github = "marsam"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters