2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, love, lua, makeWrapper, makeDesktopItem }:
|
2016-02-27 12:33:20 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "mrrescue";
|
|
|
|
version = "1.02d";
|
|
|
|
|
|
|
|
icon = fetchurl {
|
|
|
|
url = "http://tangramgames.dk/img/thumb/mrrescue.png";
|
|
|
|
sha256 = "1y5ahf0m01i1ch03axhvp2kqc6lc1yvh59zgvgxw4w7y3jryw20k";
|
|
|
|
};
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "mrrescue";
|
2019-09-08 23:38:31 +00:00
|
|
|
exec = pname;
|
|
|
|
icon = icon;
|
2021-01-21 00:55:55 +00:00
|
|
|
comment = "Arcade-style fire fighting game";
|
2016-02-27 12:33:20 +00:00
|
|
|
desktopName = "Mr. Rescue";
|
|
|
|
genericName = "mrrescue";
|
2022-02-22 14:56:15 +00:00
|
|
|
categories = [ "Game" ];
|
2016-02-27 12:33:20 +00:00
|
|
|
};
|
|
|
|
|
2021-01-21 00:55:55 +00:00
|
|
|
in
|
2016-02-27 12:33:20 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2016-02-27 12:33:20 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/SimonLarsen/${pname}/releases/download/v${version}/${pname}-${version}.love";
|
|
|
|
sha256 = "0kzahxrgpb4vsk9yavy7f8nc34d62d1jqjrpsxslmy9ywax4yfpi";
|
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ lua love makeWrapper ];
|
2016-02-27 12:33:20 +00:00
|
|
|
|
2021-08-03 08:48:34 +00:00
|
|
|
dontUnpack = true;
|
2016-02-27 12:33:20 +00:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/games/lovegames
|
|
|
|
|
2023-02-16 17:38:49 +00:00
|
|
|
cp -v $src $out/share/games/lovegames/${pname}.love
|
2016-02-27 12:33:20 +00:00
|
|
|
|
|
|
|
makeWrapper ${love}/bin/love $out/bin/${pname} --add-flags $out/share/games/lovegames/${pname}.love
|
|
|
|
|
|
|
|
chmod +x $out/bin/${pname}
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
ln -s ${desktopItem}/share/applications/* $out/share/applications/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-02-27 12:33:20 +00:00
|
|
|
description = "Arcade-style fire fighting game";
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.zlib;
|
2020-04-01 01:11:51 +00:00
|
|
|
downloadPage = "http://tangramgames.dk/games/mrrescue";
|
2016-02-27 12:33:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|