stone-kingdoms: support darwin

This commit is contained in:
Ulysses Zhan
2026-03-23 11:10:02 -07:00
parent 69b32c8126
commit 73b24a7470
+3 -3
View File
@@ -17,7 +17,7 @@ stdenvNoCC.mkDerivation rec {
src = fetchFromGitLab {
owner = "stone-kingdoms";
repo = "stone-kingdoms";
rev = version;
tag = version;
hash = "sha256-W2hzJg22O857Kh7CJVVHV5qu8QKjXCwW3hmgKBc0n2g=";
};
@@ -46,7 +46,7 @@ stdenvNoCC.mkDerivation rec {
strip-nondeterminism --type zip stone-kingdoms.love
install -Dm755 -t $out/share/games/lovegames/ stone-kingdoms.love
install -Dm644 assets/other/icon.png $out/share/icons/hicolor/256x256/apps/stone-kingdoms.png
makeWrapper ${love}/bin/love $out/bin/stone-kingdoms \
makeWrapper ${lib.getExe love} $out/bin/stone-kingdoms \
--add-flags $out/share/games/lovegames/stone-kingdoms.love
runHook postInstall
'';
@@ -54,7 +54,7 @@ stdenvNoCC.mkDerivation rec {
meta = {
description = "Real-time strategy game made with LÖVE based on the original Stronghold by Firefly studios";
homepage = "https://gitlab.com/stone-kingdoms/stone-kingdoms";
platforms = lib.platforms.linux;
platforms = love.meta.platforms;
license = with lib.licenses; [
asl20 # engine
unfree # game assets