1 { lib, stdenv, fetchFromGitHub, zip, love_11, lua, makeWrapper, makeDesktopItem }:
7 desktopItem = makeDesktopItem {
10 comment = "Crossover between Super Mario Bros. and Portal";
11 desktopName = "mari0";
12 genericName = "mari0";
13 categories = [ "Game" ];
19 inherit pname version;
21 src = fetchFromGitHub {
22 owner = "Stabyourself";
25 sha256 = "1zqaq4w599scsjvy1rsb21fd2r8j3srx9vym4ir9bh666dp36gxa";
28 nativeBuildInputs = [ makeWrapper ];
29 buildInputs = [ lua love_11 zip ];
33 mkdir -p $out/bin $out/share/games/lovegames $out/share/applications
34 zip -9 -r ${pname}.love ./*
35 mv ${pname}.love $out/share/games/lovegames/${pname}.love
36 makeWrapper ${love_11}/bin/love $out/bin/${pname} --add-flags $out/share/games/lovegames/${pname}.love
37 ln -s ${desktopItem}/share/applications/* $out/share/applications/
38 chmod +x $out/bin/${pname}
42 description = "Crossover between Super Mario Bros. and Portal";
43 platforms = platforms.linux;
44 license = licenses.mit;
45 downloadPage = "https://stabyourself.net/mari0/";