···
+
stdenv.mkDerivation (finalAttrs: {
+
version = "0-unstable-2022-10-25";
+
# submodules have git@github.com which doesn't work
+
# error: cannot run ssh: No such file or directory
+
# this override is required to fetch them via https
+
rev = "45bb4bde8a667ee8cfb5034345bec90f70eb3b91";
+
hash = "sha256-m8dyCoudTJDfP0KGcoA0Xj5LmRwN/8YOfEwiwCa8sOE=";
+
fetchSubmodules = true;
+
GIT_CONFIG_KEY_0 = "url.https://github.com/.insteadOf";
+
GIT_CONFIG_VALUE_0 = "git@github.com:";
+
# follow https://github.com/dvdfu/ld38/pull/58 and remove if ever merged
+
url = "https://github.com/dvdfu/ld38/commit/808537065a8dacc903e3d704b381f61b11f91d47.patch?full_index=1";
+
hash = "sha256-iXFQWRU2hbKjVGjkwZKgxckRpr3/DUXczNNuMz48ktA=";
+
comment = "Save the bees in this tiny world";
+
desktopName = "Honey Home";
+
genericName = "Honey Home";
+
categories = [ "Game" ];
+
mkdir -p $out/share/pixmaps
+
# generate a logo as the title logo in the readme is too wide for an app icon
+
res/hud_bee.png -gravity Center -geometry -8+15 -composite \
+
res/hud_bee.png -gravity Center -geometry -24+8 -composite \
+
install -Dm644 honey-home-logo.png $out/share/pixmaps/honey-home.png
+
zip -9 -r honey-home.love ./*
+
strip-nondeterminism --type zip honey-home.love
+
install -Dm444 -t $out/share/games/lovegames/ honey-home.love
+
makeWrapper ${love}/bin/love $out/bin/honey-home \
+
--add-flags $out/share/games/lovegames/honey-home.love
+
homepage = "https://github.com/dvdfu/ld38";
+
downloadPage = "https://dvdfu.itch.io/honey-home";
+
description = "A game where you save the bees, Ludum Dare 38 Game Jam winner";
+
license = lib.licenses.unfreeRedistributable; # best guess as it is source available
+
platforms = love.meta.platforms;
+
mainProgram = "honey-home";
+
maintainers = with lib.maintainers; [ phanirithvij ];