nixpkgs-suyu/pkgs/games/hexgui/default.nix

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

37 lines
757 B
Nix
Raw Normal View History

2022-11-19 21:07:56 +01:00
{ ant
, fetchFromGitHub
, jdk
, lib
, makeWrapper
, stdenv
}:
stdenv.mkDerivation {
pname = "hexgui";
version = "unstable-2022-5-30";
src = fetchFromGitHub {
owner = "selinger";
repo = "hexgui";
rev = "d94ce1d35a22dad28d3e7def4d28e6bebd54da9d";
hash = "sha256-1MroFH2JSEZHFigcsw1+xyHJWEnHTvHmRPVirUgwM6I=";
};
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 (and Y)";
homepage = "https://github.com/selinger/hexgui";
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.ursi ];
};
}