nixpkgs/pkgs/games/sienna/default.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

2022-10-04 18:37:56 +00:00
{ lib, stdenv, fetchurl, love, makeWrapper, makeDesktopItem, copyDesktopItems }:
2016-02-27 13:20:12 +00:00
2021-06-22 21:44:58 +00:00
stdenv.mkDerivation rec {
2016-02-27 13:20:12 +00:00
pname = "sienna";
2022-10-04 18:37:56 +00:00
version = "1.0d";
2021-06-22 21:44:58 +00:00
src = fetchurl {
url = "https://github.com/SimonLarsen/${pname}/releases/download/v${version}/${pname}-${version}.love";
2022-10-04 18:37:56 +00:00
sha256 = "sha256-1bFjhN7jL/PMYMJH1ete6uyHTYsTGgoP60sf/sJTLlU=";
2021-06-22 21:44:58 +00:00
};
2016-02-27 13:20:12 +00:00
icon = fetchurl {
url = "http://tangramgames.dk/img/thumb/sienna.png";
sha256 = "12q2rhk39dmb6ir50zafn8dylaad5gns8z3y21mfjabc5l5g02nn";
};
2022-10-04 18:37:56 +00:00
desktopItems = [ (makeDesktopItem {
2016-02-27 13:20:12 +00:00
name = "sienna";
2019-09-08 23:38:31 +00:00
exec = pname;
icon = icon;
comment = "Fast-paced one button platformer";
2016-02-27 13:20:12 +00:00
desktopName = "Sienna";
genericName = "sienna";
categories = [ "Game" ];
2022-10-04 18:37:56 +00:00
}) ];
2016-02-27 13:20:12 +00:00
2022-10-04 18:37:56 +00:00
nativeBuildInputs = [ makeWrapper copyDesktopItems ];
2016-02-27 13:20:12 +00:00
2021-08-03 08:50:01 +00:00
dontUnpack = true;
2016-02-27 13:20:12 +00:00
2022-10-04 18:37:56 +00:00
installPhase = ''
runHook preInstall
2016-02-27 13:20:12 +00:00
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
2022-10-04 18:37:56 +00:00
runHook postInstall
2016-02-27 13:20:12 +00:00
'';
meta = with lib; {
2016-02-27 13:20:12 +00:00
description = "Fast-paced one button platformer";
2022-10-04 18:37:56 +00:00
homepage = "https://tangramgames.dk/games/sienna";
2016-02-27 13:20:12 +00:00
maintainers = with maintainers; [ leenaars ];
platforms = platforms.linux;
license = licenses.free;
};
}