nixpkgs/pkgs/applications/version-management/got/default.nix

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

51 lines
1.7 KiB
Nix
Raw Normal View History

2022-09-11 22:09:58 +03:00
{ lib, stdenv, fetchurl
, pkg-config, openssl, libbsd, libevent, libuuid, libossp_uuid, libmd, zlib, ncurses, bison
}:
2021-10-02 13:24:23 +03:00
stdenv.mkDerivation rec {
pname = "got";
2022-11-15 10:09:48 +03:00
version = "0.79";
2021-10-02 13:24:23 +03:00
src = fetchurl {
url = "https://gameoftrees.org/releases/portable/got-portable-${version}.tar.gz";
2022-11-15 10:09:48 +03:00
sha256 = "sha256-eL4cCpBRhO0ctQZGg1n6+H5O6GhRKRsWcEOcRr+z2Hw=";
2021-10-02 13:24:23 +03:00
};
2022-09-11 22:09:58 +03:00
nativeBuildInputs = [ pkg-config bison ];
2021-10-02 13:24:23 +03:00
2022-09-11 22:09:58 +03:00
buildInputs = [ openssl libbsd libevent libuuid libmd zlib ncurses ]
++ lib.optionals stdenv.isDarwin [ libossp_uuid ];
2021-10-02 13:24:23 +03:00
2022-09-11 22:09:58 +03:00
preConfigure = lib.optionals stdenv.isDarwin ''
# The configure script assumes dependencies on Darwin are install via
# Homebrew or MacPorts and hardcodes assumptions about the paths of
# dependencies which fails the nixpkgs configurePhase.
substituteInPlace configure --replace 'xdarwin' 'xhomebrew'
'';
2021-10-02 13:24:23 +03:00
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
2021-11-29 10:37:54 +03:00
test "$($out/bin/got --version)" = '${pname} ${version}'
2021-10-02 13:24:23 +03:00
runHook postInstallCheck
'';
meta = with lib; {
description = "A version control system which prioritizes ease of use and simplicity over flexibility";
longDescription = ''
Game of Trees (Got) is a version control system which prioritizes
ease of use and simplicity over flexibility.
Got uses Git repositories to store versioned data. Git can be used
for any functionality which has not yet been implemented in
Got. It will always remain possible to work with both Got and Git
on the same repository.
'';
homepage = "https://gameoftrees.org";
license = licenses.isc;
platforms = platforms.linux ++ platforms.darwin;
2022-09-14 19:30:26 +03:00
maintainers = with maintainers; [ abbe afh ];
2021-10-02 13:24:23 +03:00
};
}