Unverified Commit 45429c2e authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

Merge pull request #307538 from afh/update-got

got: 0.97 -> 0.98.2
parents 38cc3932 ee9dc628
Loading
Loading
Loading
Loading
+8 −11
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
, stdenv
, fetchurl
, pkg-config
, openssl
, libressl
, libbsd
, libevent
, libuuid
@@ -12,21 +12,22 @@
, ncurses
, bison
, autoPatchelfHook
, testers
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "got";
  version = "0.97";
  version = "0.98.2";

  src = fetchurl {
    url = "https://gameoftrees.org/releases/portable/got-portable-${finalAttrs.version}.tar.gz";
    hash = "sha256-4HpIlKRYUDoymCBH8GS8DDXaY0nYiVvotpBkwglOO3I=";
    hash = "sha256-/11K2ZIu3xyAVbI5hlCXL9RjyAlZDb544uqxv3ihUMg=";
  };

  nativeBuildInputs = [ pkg-config bison ]
    ++ lib.optionals stdenv.isLinux [ autoPatchelfHook ];

  buildInputs = [ openssl libbsd libevent libuuid libmd zlib ncurses ]
  buildInputs = [ libressl libbsd libevent libuuid libmd zlib ncurses ]
    ++ lib.optionals stdenv.isDarwin [ libossp_uuid ];

  configureFlags = [ "--enable-gotd" ];
@@ -45,13 +46,9 @@ stdenv.mkDerivation (finalAttrs: {
    "-include getopt.h"
  ]);

  doInstallCheck = true;

  installCheckPhase = ''
    runHook preInstallCheck
    test "$($out/bin/got --version)" = "got ${finalAttrs.version}"
    runHook postInstallCheck
  '';
  passthru.tests.version = testers.testVersion {
    package = finalAttrs.finalPackage;
  };

  meta = {
    changelog = "https://gameoftrees.org/releases/CHANGES";
+0 −2
Original line number Diff line number Diff line
@@ -31383,8 +31383,6 @@ with pkgs;
  goffice = callPackage ../development/libraries/goffice { };
  got = darwin.apple_sdk_11_0.callPackage ../applications/version-management/got { };
  gtkterm = callPackage ../tools/misc/gtkterm { };
  gtk-pipe-viewer = perlPackages.callPackage ../applications/video/pipe-viewer { withGtk3 = true; };