Merge pull request #116419 from OmnipotentEntity/katago-1.8.1

This commit is contained in:
Sandro 2021-03-15 16:40:36 +01:00 committed by GitHub
commit 1f0ce0b951
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,6 @@
, cudnn
, eigen
, fetchFromGitHub
, fetchpatch
, gperftools
, lib
, libzip
@ -34,14 +33,14 @@ let
in env.mkDerivation rec {
pname = "katago";
version = "1.8.0";
githash = "8ffda1fe05c69c67342365013b11225d443445e8";
version = "1.8.1";
githash = "73bc3e38b3490cbe00179c9c37f5385dfd60c6bc";
src = fetchFromGitHub {
owner = "lightvector";
repo = "katago";
rev = "v${version}";
sha256 = "18r75xjj6vv2gbl92k9aa5bd0cxf09zl1vxlji148y0xbvgv6p8c";
sha256 = "sha256-Rj6fgj1ZQgYhz6TrZk5b8dCMsCPk5N3qN3kgqV+UEDc=";
};
fakegit = writeShellScriptBin "git" "echo ${githash}";
@ -96,10 +95,13 @@ in env.mkDerivation rec {
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin; cp katago $out/bin;
'' + lib.optionalString enableCuda ''
wrapProgram $out/bin/katago \
--prefix LD_LIBRARY_PATH : "/run/opengl-driver/lib"
'' + ''
runHook postInstall
'';
meta = with lib; {