2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, love, lua, makeWrapper, makeDesktopItem }:
|
2016-02-27 14:20:12 +01:00
|
|
|
|
2021-06-22 23:44:58 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-02-27 14:20:12 +01:00
|
|
|
pname = "sienna";
|
|
|
|
version = "1.0c";
|
2021-06-22 23:44:58 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/SimonLarsen/${pname}/releases/download/v${version}/${pname}-${version}.love";
|
|
|
|
sha256 = "1x15276fhqspgrrv8fzkp032i2qa8piywc0yy061x59mxhdndzj6";
|
|
|
|
};
|
2016-02-27 14:20:12 +01:00
|
|
|
|
|
|
|
icon = fetchurl {
|
|
|
|
url = "http://tangramgames.dk/img/thumb/sienna.png";
|
|
|
|
sha256 = "12q2rhk39dmb6ir50zafn8dylaad5gns8z3y21mfjabc5l5g02nn";
|
|
|
|
};
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "sienna";
|
2019-09-09 01:38:31 +02:00
|
|
|
exec = pname;
|
|
|
|
icon = icon;
|
2021-01-21 01:55:55 +01:00
|
|
|
comment = "Fast-paced one button platformer";
|
2016-02-27 14:20:12 +01:00
|
|
|
desktopName = "Sienna";
|
|
|
|
genericName = "sienna";
|
2022-02-22 15:56:15 +01:00
|
|
|
categories = [ "Game" ];
|
2016-02-27 14:20:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ lua love ];
|
|
|
|
|
2021-08-03 10:50:01 +02:00
|
|
|
dontUnpack = true;
|
2016-02-27 14:20:12 +01:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
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/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-02-27 14:20:12 +01:00
|
|
|
description = "Fast-paced one button platformer";
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.free;
|
2020-04-01 03:11:51 +02:00
|
|
|
downloadPage = "http://tangramgames.dk/games/sienna";
|
2016-02-27 14:20:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|