nixpkgs/pkgs/games/mari0/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.1 KiB
Nix
Raw Normal View History

2023-06-10 03:57:00 +00:00
{ lib
, copyDesktopItems
, fetchFromGitHub
, love
, makeDesktopItem
, makeWrapper
, stdenv
, zip
}:
2022-10-04 20:54:13 +00:00
stdenv.mkDerivation rec {
pname = "mari0";
version = "1.6.2";
src = fetchFromGitHub {
owner = "Stabyourself";
repo = pname;
rev = version;
sha256 = "1zqaq4w599scsjvy1rsb21fd2r8j3srx9vym4ir9bh666dp36gxa";
};
2023-06-10 03:57:00 +00:00
nativeBuildInputs = [
copyDesktopItems
makeWrapper
zip
];
2022-10-04 20:54:13 +00:00
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
'';
meta = with lib; {
description = "Crossover between Super Mario Bros. and Portal";
platforms = platforms.linux;
license = licenses.mit;
downloadPage = "https://stabyourself.net/mari0/";
};
}