···1+{ lib, stdenv, fetchurl, pkg-config, openssl, libuuid, libmd, zlib, ncurses }:
2+3+stdenv.mkDerivation rec {
4+ pname = "got";
5+ version = "0.60";
6+7+ src = fetchurl {
8+ url =
9+ "https://gameoftrees.org/releases/portable/got-portable-${version}.tar.gz";
10+ sha256 = "sha256-tT8F3Kx7Rcjd/tWjIXXNWygYlkMddWwrttpjnYLnBdo=";
11+ };
12+13+ nativeBuildInputs = [ pkg-config ];
14+15+ buildInputs = [ openssl libuuid libmd zlib ncurses ];
16+17+ doInstallCheck = true;
18+19+ installCheckPhase = ''
20+ runHook preInstallCheck
21+ test "$($out/bin/got --version)" = '${pname} "${version}"'
22+ runHook postInstallCheck
23+ '';
24+25+ meta = with lib; {
26+ description = "A version control system which prioritizes ease of use and simplicity over flexibility";
27+ longDescription = ''
28+ Game of Trees (Got) is a version control system which prioritizes
29+ ease of use and simplicity over flexibility.
30+31+ Got uses Git repositories to store versioned data. Git can be used
32+ for any functionality which has not yet been implemented in
33+ Got. It will always remain possible to work with both Got and Git
34+ on the same repository.
35+ '';
36+ homepage = "https://gameoftrees.org";
37+ license = licenses.isc;
38+ platforms = platforms.all;
39+ maintainers = with maintainers; [ abbe ];
40+ };
41+}