1 { lib, stdenv, fetchurl, love, lua, makeWrapper, makeDesktopItem }:
8 url = "http://tangramgames.dk/img/thumb/mrrescue.png";
9 sha256 = "1y5ahf0m01i1ch03axhvp2kqc6lc1yvh59zgvgxw4w7y3jryw20k";
12 desktopItem = makeDesktopItem {
16 comment = "Arcade-style fire fighting game";
17 desktopName = "Mr. Rescue";
18 genericName = "mrrescue";
19 categories = [ "Game" ];
25 name = "${pname}-${version}";
28 url = "https://github.com/SimonLarsen/${pname}/releases/download/v${version}/${pname}-${version}.love";
29 sha256 = "0kzahxrgpb4vsk9yavy7f8nc34d62d1jqjrpsxslmy9ywax4yfpi";
32 nativeBuildInputs = [ lua love makeWrapper ];
39 mkdir -p $out/share/games/lovegames
41 cp -v $src $out/share/${pname}.love
43 makeWrapper ${love}/bin/love $out/bin/${pname} --add-flags $out/share/games/lovegames/${pname}.love
45 chmod +x $out/bin/${pname}
46 mkdir -p $out/share/applications
47 ln -s ${desktopItem}/share/applications/* $out/share/applications/
51 description = "Arcade-style fire fighting game";
52 maintainers = with maintainers; [ ];
53 platforms = platforms.linux;
54 license = licenses.zlib;
55 downloadPage = "http://tangramgames.dk/games/mrrescue";