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