diff options
author | Daniel Nagy <danielnagy@posteo.de> | 2022-10-04 20:37:56 +0200 |
---|---|---|
committer | Daniel Nagy <danielnagy@posteo.de> | 2022-10-06 22:29:21 +0200 |
commit | a8ba09146cb47795cf95dc4a2fd7f0ebc6b282f5 (patch) | |
tree | 641647261431b63da1f0c5b22fa644b9395c85d2 /pkgs/games/sienna | |
parent | 95fda953f6db2e9496d2682c4fc7b82f959878f7 (diff) |
sienna: 1.0c -> 1.0d
Diffstat (limited to 'pkgs/games/sienna')
-rw-r--r-- | pkgs/games/sienna/default.nix | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/pkgs/games/sienna/default.nix b/pkgs/games/sienna/default.nix index 37138f152b6a0..c6f8db0ea9e7f 100644 --- a/pkgs/games/sienna/default.nix +++ b/pkgs/games/sienna/default.nix @@ -1,11 +1,12 @@ -{ lib, stdenv, fetchurl, love, lua, makeWrapper, makeDesktopItem }: +{ lib, stdenv, fetchurl, love, makeWrapper, makeDesktopItem, copyDesktopItems }: stdenv.mkDerivation rec { pname = "sienna"; - version = "1.0c"; + version = "1.0d"; + src = fetchurl { url = "https://github.com/SimonLarsen/${pname}/releases/download/v${version}/${pname}-${version}.love"; - sha256 = "1x15276fhqspgrrv8fzkp032i2qa8piywc0yy061x59mxhdndzj6"; + sha256 = "sha256-1bFjhN7jL/PMYMJH1ete6uyHTYsTGgoP60sf/sJTLlU="; }; icon = fetchurl { @@ -13,7 +14,7 @@ stdenv.mkDerivation rec { sha256 = "12q2rhk39dmb6ir50zafn8dylaad5gns8z3y21mfjabc5l5g02nn"; }; - desktopItem = makeDesktopItem { + desktopItems = [ (makeDesktopItem { name = "sienna"; exec = pname; icon = icon; @@ -21,33 +22,29 @@ stdenv.mkDerivation rec { desktopName = "Sienna"; genericName = "sienna"; categories = [ "Game" ]; - }; + }) ]; - nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ lua love ]; + nativeBuildInputs = [ makeWrapper copyDesktopItems ]; dontUnpack = true; - installPhase = - '' + 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 - - chmod +x $out/bin/${pname} - mkdir -p $out/share/applications - ln -s ${desktopItem}/share/applications/* $out/share/applications/ + runHook postInstall ''; meta = with lib; { description = "Fast-paced one button platformer"; + homepage = "https://tangramgames.dk/games/sienna"; maintainers = with maintainers; [ leenaars ]; platforms = platforms.linux; license = licenses.free; - downloadPage = "http://tangramgames.dk/games/sienna"; }; } |