2022-11-19 20:07:56 +00:00
|
|
|
{ ant
|
|
|
|
, fetchFromGitHub
|
|
|
|
, jdk
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "hexgui";
|
2023-01-15 23:37:19 +00:00
|
|
|
version = "unstable-2023-1-7";
|
2022-11-19 20:07:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "selinger";
|
|
|
|
repo = "hexgui";
|
2023-01-15 23:37:19 +00:00
|
|
|
rev = "62f07ff51db0d4a945ad42f86167cc2f2ce65d90";
|
|
|
|
hash = "sha256-yEdZs9HUt3lcrdNO1OH8M8g71+2Ltf+v1RR1fKRDV0o=";
|
2022-11-19 20:07:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ ant jdk makeWrapper ];
|
|
|
|
buildPhase = ''
|
|
|
|
ant
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
mv bin lib $out
|
|
|
|
wrapProgram $out/bin/hexgui --prefix PATH : ${lib.makeBinPath [ jdk ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2023-01-15 23:37:19 +00:00
|
|
|
description = "GUI for the board game Hex";
|
2022-11-19 20:07:56 +00:00
|
|
|
homepage = "https://github.com/selinger/hexgui";
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = [ lib.maintainers.ursi ];
|
|
|
|
};
|
|
|
|
}
|