Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 36 lines 748 B view raw
1{ ant 2, fetchFromGitHub 3, jdk 4, lib 5, makeWrapper 6, stdenv 7}: 8stdenv.mkDerivation { 9 pname = "hexgui"; 10 version = "unstable-2023-1-7"; 11 12 src = fetchFromGitHub { 13 owner = "selinger"; 14 repo = "hexgui"; 15 rev = "62f07ff51db0d4a945ad42f86167cc2f2ce65d90"; 16 hash = "sha256-yEdZs9HUt3lcrdNO1OH8M8g71+2Ltf+v1RR1fKRDV0o="; 17 }; 18 19 nativeBuildInputs = [ ant jdk makeWrapper ]; 20 buildPhase = '' 21 ant 22 ''; 23 24 installPhase = '' 25 mkdir $out 26 mv bin lib $out 27 wrapProgram $out/bin/hexgui --prefix PATH : ${lib.makeBinPath [ jdk ]} 28 ''; 29 30 meta = { 31 description = "GUI for the board game Hex"; 32 homepage = "https://github.com/selinger/hexgui"; 33 license = lib.licenses.gpl3; 34 maintainers = [ lib.maintainers.ursi ]; 35 }; 36}