2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, zip, love_11, lua, makeWrapper, makeDesktopItem }:
|
2020-05-07 21:50:18 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "mari0";
|
|
|
|
version = "1.6.2";
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "mari0";
|
|
|
|
exec = pname;
|
|
|
|
comment = "Crossover between Super Mario Bros. and Portal";
|
|
|
|
desktopName = "mari0";
|
|
|
|
genericName = "mari0";
|
2022-02-22 15:56:15 +01:00
|
|
|
categories = [ "Game" ];
|
2020-05-07 21:50:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Stabyourself";
|
|
|
|
repo = pname;
|
2020-11-01 23:39:49 +01:00
|
|
|
rev = version;
|
2020-05-07 21:50:18 +02:00
|
|
|
sha256 = "1zqaq4w599scsjvy1rsb21fd2r8j3srx9vym4ir9bh666dp36gxa";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ lua love_11 zip ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/bin $out/share/games/lovegames $out/share/applications
|
|
|
|
zip -9 -r ${pname}.love ./*
|
|
|
|
mv ${pname}.love $out/share/games/lovegames/${pname}.love
|
|
|
|
makeWrapper ${love_11}/bin/love $out/bin/${pname} --add-flags $out/share/games/lovegames/${pname}.love
|
|
|
|
ln -s ${desktopItem}/share/applications/* $out/share/applications/
|
|
|
|
chmod +x $out/bin/${pname}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-05-07 21:50:18 +02:00
|
|
|
description = "Crossover between Super Mario Bros. and Portal";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
downloadPage = "https://stabyourself.net/mari0/";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|