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
65 lines
1.4 KiB
Nix
65 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
love,
|
|
makeWrapper,
|
|
makeDesktopItem,
|
|
copyDesktopItems,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sienna";
|
|
version = "1.0d";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/SimonLarsen/${pname}/releases/download/v${version}/${pname}-${version}.love";
|
|
sha256 = "sha256-1bFjhN7jL/PMYMJH1ete6uyHTYsTGgoP60sf/sJTLlU=";
|
|
};
|
|
|
|
icon = fetchurl {
|
|
url = "http://tangramgames.dk/img/thumb/sienna.png";
|
|
sha256 = "12q2rhk39dmb6ir50zafn8dylaad5gns8z3y21mfjabc5l5g02nn";
|
|
};
|
|
|
|
desktopItems = [
|
|
(makeDesktopItem {
|
|
name = "sienna";
|
|
exec = pname;
|
|
icon = icon;
|
|
comment = "Fast-paced one button platformer";
|
|
desktopName = "Sienna";
|
|
genericName = "sienna";
|
|
categories = [ "Game" ];
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
copyDesktopItems
|
|
];
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
mkdir -p $out/share/games/lovegames
|
|
|
|
cp -v $src $out/share/games/lovegames/${pname}.love
|
|
|
|
makeWrapper ${love}/bin/love $out/bin/${pname} --add-flags $out/share/games/lovegames/${pname}.love
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Fast-paced one button platformer";
|
|
mainProgram = "sienna";
|
|
homepage = "https://tangramgames.dk/games/sienna";
|
|
maintainers = with maintainers; [ leenaars ];
|
|
platforms = platforms.linux;
|
|
license = licenses.free;
|
|
};
|
|
|
|
}
|