nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 ant,
3 fetchFromGitHub,
4 jdk,
5 lib,
6 makeWrapper,
7 stdenv,
8}:
9stdenv.mkDerivation {
10 pname = "hexgui";
11 version = "0.10-unstable-2024-11-03";
12
13 src = fetchFromGitHub {
14 owner = "selinger";
15 repo = "hexgui";
16 rev = "444408f4411a4f13cbd90ac670f1dd344d35a948";
17 hash = "sha256-W5klRwVsSlrSp3Pw5D4uknIRjaNMv+OTUtXXTmd6P3I=";
18 };
19
20 nativeBuildInputs = [
21 ant
22 jdk
23 makeWrapper
24 ];
25 buildPhase = ''
26 ant
27 '';
28
29 installPhase = ''
30 mkdir $out
31 mv bin lib $out
32 wrapProgram $out/bin/hexgui --prefix PATH : ${lib.makeBinPath [ jdk ]}
33 '';
34
35 meta = {
36 description = "GUI for the board game Hex";
37 mainProgram = "hexgui";
38 homepage = "https://github.com/selinger/hexgui";
39 license = lib.licenses.gpl3;
40 maintainers = [ lib.maintainers.ursi ];
41 };
42}