Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.7 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitLab,
copyDesktopItems,
love,
makeDesktopItem,
makeWrapper,
strip-nondeterminism,
zip,
}:
stdenvNoCC.mkDerivation rec {
pname = "stone-kingdoms";
version = "0.6.1";
src = fetchFromGitLab {
owner = "stone-kingdoms";
repo = "stone-kingdoms";
rev = version;
hash = "sha256-W2hzJg22O857Kh7CJVVHV5qu8QKjXCwW3hmgKBc0n2g=";
};
nativeBuildInputs = [
copyDesktopItems
makeWrapper
strip-nondeterminism
zip
];
desktopItems = [
(makeDesktopItem {
name = "stone-kingdoms";
exec = "stone-kingdoms";
icon = "stone-kingdoms";
comment = "A real-time strategy game made with LÖVE based on the original Stronghold by Firefly studios";
desktopName = "Stone Kingdoms";
genericName = "stone-kingdoms";
categories = [ "Game" ];
})
];
installPhase = ''
runHook preInstall
zip -9 -r stone-kingdoms.love ./*
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 \
--add-flags $out/share/games/lovegames/stone-kingdoms.love
runHook postInstall
'';
meta = with lib; {
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 = platforms.linux;
license = with licenses; [
asl20 # engine
unfree # game assets
];
maintainers = with maintainers; [ hulr ];
};
}