mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
38 lines
776 B
Nix
38 lines
776 B
Nix
{ ant
|
|
, fetchFromGitHub
|
|
, jdk
|
|
, lib
|
|
, makeWrapper
|
|
, stdenv
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "hexgui";
|
|
version = "unstable-2023-1-7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "selinger";
|
|
repo = "hexgui";
|
|
rev = "62f07ff51db0d4a945ad42f86167cc2f2ce65d90";
|
|
hash = "sha256-yEdZs9HUt3lcrdNO1OH8M8g71+2Ltf+v1RR1fKRDV0o=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|