mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
katago: 1.8.0 -> 1.8.1
This commit is contained in:
parent
2a56da2235
commit
88c64f8a11
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue