nixpkgs/pkgs/by-name/bs/bstone/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.0 KiB
Nix
Raw Normal View History

2024-04-05 09:19:20 -05:00
{
lib,
2024-12-14 12:50:22 -06:00
stdenv,
2024-04-05 09:19:20 -05:00
fetchFromGitHub,
cmake,
sdl2-compat,
2024-04-05 09:19:20 -05:00
}:
2024-12-14 12:50:22 -06:00
stdenv.mkDerivation (finalAttrs: {
2024-04-05 09:19:20 -05:00
pname = "bstone";
2025-03-21 17:44:16 -05:00
version = "1.2.15";
2024-04-05 09:19:20 -05:00
src = fetchFromGitHub {
owner = "bibendovsky";
repo = "bstone";
2025-03-21 17:44:16 -05:00
tag = "v${finalAttrs.version}";
hash = "sha256-L07GfqeQPTWGQb+vOOXNgbYLYpxQ2OHFnCLWd4uSlBw=";
2024-04-05 09:19:20 -05:00
};
nativeBuildInputs = [
cmake
];
buildInputs = [
sdl2-compat
2024-04-05 09:19:20 -05:00
];
postInstall = ''
2025-03-21 17:44:16 -05:00
mkdir -p $out/{bin,share/bibendovsky/bstone}
mv $out/bstone $out/bin
mv $out/*.txt $out/share/bibendovsky/bstone
2024-04-05 09:19:20 -05:00
'';
meta = {
description = "Unofficial source port for the Blake Stone series";
homepage = "https://github.com/bibendovsky/bstone";
changelog = "https://github.com/bibendovsky/bstone/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = with lib.licenses; [
gpl2Plus # Original game source code
mit # BStone
];
maintainers = with lib.maintainers; [ keenanweaver ];
mainProgram = "bstone";
platforms = lib.platforms.linux; # TODO: macOS / Darwin support
};
})