system-syzygy: init at 1.0.1

This commit is contained in:
marius851000 2019-09-17 10:26:04 +02:00 committed by Lassulus
parent f76944ef3d
commit afbb73ee71
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{lib, rustPlatform, fetchFromGitHub, fetchurl, SDL2, makeWrapper, makeDesktopItem}:
let
desktopFile = makeDesktopItem {
name = "system-syzygy";
exec = "%out%/bin/syzygy";
comment = "A puzzle game";
desktopName = "System Syzygy";
categories = "Game;";
};
in
rustPlatform.buildRustPackage rec {
pname = "system-syzygy";
version = "1.0.1";
src = fetchFromGitHub {
owner = "mdsteele";
repo = "syzygy";
rev = "5ba148fed7aae14bf35108d7303e4194e8ffe5e8";
sha256 = "07mzwx8ql33q865snnw4gm3dgf0mnm60lnq1f5fgas2yjy9g9vwa";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ SDL2 ];
cargoSha256 = "03724z33dqxbbrzpvz172qh45qrgnyb801algjdcm32v8xsx81qg";
postInstall = ''
mkdir -p $out/share/syzygy/
cp -r ${src}/data/* $out/share/syzygy/
wrapProgram $out/bin/syzygy --set SYZYGY_DATA_DIR $out/share/syzygy
mkdir -p $out/share/applications
substituteAll ${desktopFile}/share/applications/system-syzygy.desktop $out/share/applications/system-syzygy.desktop
'';
meta = with lib; {
description = "A story and a puzzle game, where you solve a variety of puzzle";
homepage = "https://mdsteele.games/syzygy";
license = licenses.gpl3Plus;
maintainers = [ maintainers.marius851000 ];
};
}

View File

@ -22494,6 +22494,8 @@ in
synthv1 = callPackage ../applications/audio/synthv1 { }; synthv1 = callPackage ../applications/audio/synthv1 { };
system-syzygy = callPackage ../games/system-syzygy { };
t4kcommon = callPackage ../games/t4kcommon { }; t4kcommon = callPackage ../games/t4kcommon { };
tcl2048 = callPackage ../games/tcl2048 { }; tcl2048 = callPackage ../games/tcl2048 { };