Files
nixpkgs/pkgs/by-name/he/hexgui/package.nix
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

43 lines
805 B
Nix

{
ant,
fetchFromGitHub,
jdk,
lib,
makeWrapper,
stdenv,
}:
stdenv.mkDerivation {
pname = "hexgui";
version = "0.10-unstable-2024-11-03";
src = fetchFromGitHub {
owner = "selinger";
repo = "hexgui";
rev = "444408f4411a4f13cbd90ac670f1dd344d35a948";
hash = "sha256-W5klRwVsSlrSp3Pw5D4uknIRjaNMv+OTUtXXTmd6P3I=";
};
nativeBuildInputs = [
ant
jdk
makeWrapper
];
buildPhase = ''
ant
'';
installPhase = ''
mkdir $out
mv bin lib $out
wrapProgram $out/bin/hexgui --prefix PATH : ${lib.makeBinPath [ jdk ]}
'';
meta = {
description = "GUI for the board game Hex";
mainProgram = "hexgui";
homepage = "https://github.com/selinger/hexgui";
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.ursi ];
};
}