···11+{ lib, stdenv, fetchurl, pkg-config, openssl, libuuid, libmd, zlib, ncurses }:
22+33+stdenv.mkDerivation rec {
44+ pname = "got";
55+ version = "0.60";
66+77+ src = fetchurl {
88+ url =
99+ "https://gameoftrees.org/releases/portable/got-portable-${version}.tar.gz";
1010+ sha256 = "sha256-tT8F3Kx7Rcjd/tWjIXXNWygYlkMddWwrttpjnYLnBdo=";
1111+ };
1212+1313+ nativeBuildInputs = [ pkg-config ];
1414+1515+ buildInputs = [ openssl libuuid libmd zlib ncurses ];
1616+1717+ doInstallCheck = true;
1818+1919+ installCheckPhase = ''
2020+ runHook preInstallCheck
2121+ test "$($out/bin/got --version)" = '${pname} "${version}"'
2222+ runHook postInstallCheck
2323+ '';
2424+2525+ meta = with lib; {
2626+ description = "A version control system which prioritizes ease of use and simplicity over flexibility";
2727+ longDescription = ''
2828+ Game of Trees (Got) is a version control system which prioritizes
2929+ ease of use and simplicity over flexibility.
3030+3131+ Got uses Git repositories to store versioned data. Git can be used
3232+ for any functionality which has not yet been implemented in
3333+ Got. It will always remain possible to work with both Got and Git
3434+ on the same repository.
3535+ '';
3636+ homepage = "https://gameoftrees.org";
3737+ license = licenses.isc;
3838+ platforms = platforms.all;
3939+ maintainers = with maintainers; [ abbe ];
4040+ };
4141+}