2022-12-02 08:20:57 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, zip, love, makeWrapper, makeDesktopItem
|
|
|
|
, copyDesktopItems }:
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-05-15 21:57:56 +00:00
|
|
|
pname = "mari0";
|
|
|
|
version = "1.6.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Stabyourself";
|
|
|
|
repo = pname;
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = version;
|
2020-05-15 21:57:56 +00:00
|
|
|
sha256 = "1zqaq4w599scsjvy1rsb21fd2r8j3srx9vym4ir9bh666dp36gxa";
|
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper copyDesktopItems zip ];
|
|
|
|
|
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = "mari0";
|
|
|
|
exec = pname;
|
|
|
|
comment = "Crossover between Super Mario Bros. and Portal";
|
|
|
|
desktopName = "mari0";
|
|
|
|
genericName = "mari0";
|
|
|
|
categories = [ "Game" ];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
zip -9 -r mari0.love ./*
|
|
|
|
install -Dm444 -t $out/share/games/lovegames/ mari0.love
|
|
|
|
makeWrapper ${love}/bin/love $out/bin/mari0 \
|
|
|
|
--add-flags $out/share/games/lovegames/mari0.love
|
|
|
|
runHook postInstall
|
2020-05-15 21:57:56 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-15 21:57:56 +00:00
|
|
|
description = "Crossover between Super Mario Bros. and Portal";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
downloadPage = "https://stabyourself.net/mari0/";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|