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