Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 47 lines 811 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 boost, 7 opencl-headers, 8 ocl-icd, 9 qtbase, 10 zlib, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "leela-zero"; 15 version = "0.17"; 16 17 src = fetchFromGitHub { 18 owner = "gcp"; 19 repo = "leela-zero"; 20 rev = "v${version}"; 21 hash = "sha256-AQRp2rkL9KCZdsJN6uz2Y+3kV4lyRLYjWn0p7UOjBMw="; 22 fetchSubmodules = true; 23 }; 24 25 buildInputs = [ 26 boost 27 opencl-headers 28 ocl-icd 29 qtbase 30 zlib 31 ]; 32 33 nativeBuildInputs = [ cmake ]; 34 35 dontWrapQtApps = true; 36 37 meta = with lib; { 38 description = "Go engine modeled after AlphaGo Zero"; 39 homepage = "https://github.com/gcp/leela-zero"; 40 license = licenses.gpl3Plus; 41 maintainers = [ 42 maintainers.averelld 43 maintainers.omnipotententity 44 ]; 45 platforms = platforms.linux; 46 }; 47}