Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 64 lines 1.7 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 unzip, 6 fltk, 7 which, 8 libjpeg, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "fltrator"; 13 version = "2.3"; 14 15 src = fetchurl { 16 url = "mirror://sourceforge/fltrator/fltrator-${version}-code.zip"; 17 sha256 = "125aqq1sfrm0c9cm6gyylwdmc8xrb0rjf563xvw7q28sdbl6ayp7"; 18 }; 19 20 buildInputs = [ 21 fltk 22 libjpeg 23 ]; 24 nativeBuildInputs = [ 25 unzip 26 which 27 ]; 28 29 postPatch = '' 30 substituteInPlace src/fltrator.cxx\ 31 --replace 'home += "fltrator/"' "home = \"$out/fltrator/\"" 32 substituteInPlace src/fltrator-landscape.cxx\ 33 --replace 'home += "fltrator/"' "home = \"$out/fltrator/\"" 34 substituteInPlace rsc/fltrator.desktop \ 35 --replace 'Exec=fltrator' "Exec=$out/bin/fltrator" 36 ''; 37 38 dontAddPrefix = true; 39 40 makeFlags = [ 41 "HOME=$(out)" 42 "RSC_PATH=$(out)/fltrator" 43 ]; 44 45 postInstall = '' 46 mkdir -p $out/share/applications 47 cp rsc/fltrator.desktop $out/share/applications 48 mkdir -p $out/share/icons/hicolor/128x128/apps/ 49 cp rsc/fltrator-128.png $out/share/icons/hicolor/128x128/apps/fltrator2.png 50 ''; 51 52 meta = with lib; { 53 description = "Simple retro style arcade side-scroller game"; 54 longDescription = '' 55 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. 56 It has ten different levels and a level editor to create new levels or modify the existing. 57 ''; # from https://libregamewiki.org/FLTrator 58 homepage = "https://fltrator.sourceforge.net/"; 59 platforms = platforms.linux; 60 maintainers = [ maintainers.marius851000 ]; 61 license = licenses.gpl3; 62 }; 63 64}