Files
nixpkgs/pkgs/by-name/ma/mari0/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

61 lines
1.3 KiB
Nix

{
lib,
copyDesktopItems,
fetchFromGitHub,
love,
makeDesktopItem,
makeWrapper,
stdenv,
strip-nondeterminism,
zip,
}:
stdenv.mkDerivation {
pname = "mari0";
version = "1.6.2-unstable-2023-08-08";
src = fetchFromGitHub {
owner = "Stabyourself";
repo = "mari0";
rev = "57829fd23e783d1a2993b9d64a7f7e6b131e572f";
sha256 = "sha256-rmsj6gMTleeWx911j5/sfpfQG54HDtsfsTyPDbEkLhE=";
};
nativeBuildInputs = [
copyDesktopItems
makeWrapper
strip-nondeterminism
zip
];
desktopItems = [
(makeDesktopItem {
name = "mari0";
exec = "mari0";
comment = "Crossover between Super Mario Bros. and Portal";
desktopName = "mari0";
genericName = "mari0";
categories = [ "Game" ];
})
];
installPhase = ''
runHook preInstall
zip -9 -r mari0.love ./*
strip-nondeterminism --type zip 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";
mainProgram = "mari0";
platforms = platforms.linux;
license = licenses.mit;
downloadPage = "https://stabyourself.net/mari0/";
};
}