···1617stdenv.mkDerivation (finalAttrs: {
18 pname = "got";
19- version = "0.96";
2021 src = fetchurl {
22 url = "https://gameoftrees.org/releases/portable/got-portable-${finalAttrs.version}.tar.gz";
23- hash = "sha256-/R7r6IJtgkuNQwoLxys/1HcXW+l3PVkjnPXphFpAFTs=";
24 };
2526 nativeBuildInputs = [ pkg-config bison ]
···35 # The configure script assumes dependencies on Darwin are installed via
36 # Homebrew or MacPorts and hardcodes assumptions about the paths of
37 # dependencies which fails the nixpkgs configurePhase.
38- substituteInPlace configure --replace 'xdarwin' 'xhomebrew'
39 '';
4041 env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [
···4950 installCheckPhase = ''
51 runHook preInstallCheck
52- test "$($out/bin/got --version)" = "${finalAttrs.pname} ${finalAttrs.version}"
53 runHook postInstallCheck
54 '';
5556- meta = with lib; {
057 description = "A version control system which prioritizes ease of use and simplicity over flexibility";
58 longDescription = ''
59 Game of Trees (Got) is a version control system which prioritizes
···65 on the same repository.
66 '';
67 homepage = "https://gameoftrees.org";
68- changelog = "https://gameoftrees.org/releases/CHANGES";
69- license = licenses.isc;
70- platforms = platforms.linux ++ platforms.darwin;
71- maintainers = with maintainers; [ abbe afh ];
72 };
73})
···1617stdenv.mkDerivation (finalAttrs: {
18 pname = "got";
19+ version = "0.97";
2021 src = fetchurl {
22 url = "https://gameoftrees.org/releases/portable/got-portable-${finalAttrs.version}.tar.gz";
23+ hash = "sha256-4HpIlKRYUDoymCBH8GS8DDXaY0nYiVvotpBkwglOO3I=";
24 };
2526 nativeBuildInputs = [ pkg-config bison ]
···35 # The configure script assumes dependencies on Darwin are installed via
36 # Homebrew or MacPorts and hardcodes assumptions about the paths of
37 # dependencies which fails the nixpkgs configurePhase.
38+ substituteInPlace configure --replace-fail 'xdarwin' 'xhomebrew'
39 '';
4041 env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [
···4950 installCheckPhase = ''
51 runHook preInstallCheck
52+ test "$($out/bin/got --version)" = "got ${finalAttrs.version}"
53 runHook postInstallCheck
54 '';
5556+ meta = {
57+ changelog = "https://gameoftrees.org/releases/CHANGES";
58 description = "A version control system which prioritizes ease of use and simplicity over flexibility";
59 longDescription = ''
60 Game of Trees (Got) is a version control system which prioritizes
···66 on the same repository.
67 '';
68 homepage = "https://gameoftrees.org";
69+ license = lib.licenses.isc;
70+ maintainers = with lib.maintainers; [ abbe afh ];
71+ mainProgram = "got";
72+ platforms = with lib.platforms; darwin ++ linux;
73 };
74})