fishnet: 2.5.1 -> 2.7.1

+12 -26
-13
pkgs/servers/fishnet/Cargo.lock.patch
··· 1 - diff --git a/Cargo.lock b/Cargo.lock 2 - index 963e40e..fb76d78 100644 3 - --- a/Cargo.lock 4 - +++ b/Cargo.lock 5 - @@ -230,7 +230,7 @@ dependencies = [ 6 - 7 - [[package]] 8 - name = "fishnet" 9 - -version = "2.5.1-dev" 10 - +version = "2.5.1" 11 - dependencies = [ 12 - "arrayvec", 13 - "atty",
···
+12 -13
pkgs/servers/fishnet/default.nix
··· 6 }: 7 8 let 9 - nnueFile = "nn-13406b1dcbe0.nnue"; 10 nnue = fetchurl { 11 url = "https://tests.stockfishchess.org/api/nn/${nnueFile}"; 12 - sha256 = "sha256-E0BrHcvgo238XgfaUdjbOLekXX2kMHjsJadiTCuDI28="; 13 }; 14 in 15 rustPlatform.buildRustPackage rec { 16 pname = "fishnet"; 17 - version = "2.5.1"; 18 19 src = fetchFromGitHub { 20 - owner = "niklasf"; 21 repo = pname; 22 rev = "v${version}"; 23 - sha256 = "sha256-nVRG60sSpTqfqhCclvWoeyHR0+oO1Jn1PgftigDGq5c="; 24 fetchSubmodules = true; 25 }; 26 ··· 29 cp -v '${nnue}' 'Fairy-Stockfish/src/${nnueFile}' 30 ''; 31 32 - cargoSha256 = "sha256-BJK7M/pjHRj74xoeciavhkK2YRpeogkELIuXetX73so="; 33 34 - # TODO: Cargo.lock is out of date, so fix it. Likely not necessary anymore in 35 - # the next update. 36 - cargoPatches = [ 37 - ./Cargo.lock.patch 38 - ]; 39 40 meta = with lib; { 41 description = "Distributed Stockfish analysis for lichess.org"; 42 - homepage = "https://github.com/niklasf/fishnet"; 43 license = licenses.gpl3Plus; 44 maintainers = with maintainers; [ tu-maurice ]; 45 - platforms = [ "x86_64-linux" ]; 46 }; 47 }
··· 6 }: 7 8 let 9 + nnueFile = "nn-5af11540bbfe.nnue"; 10 nnue = fetchurl { 11 url = "https://tests.stockfishchess.org/api/nn/${nnueFile}"; 12 + hash = "sha256-WvEVQLv+/LVOOMXdAAyrS0ad+nWZodVb5dJyLCCokps="; 13 }; 14 in 15 rustPlatform.buildRustPackage rec { 16 pname = "fishnet"; 17 + version = "2.7.1"; 18 19 src = fetchFromGitHub { 20 + owner = "lichess-org"; 21 repo = pname; 22 rev = "v${version}"; 23 + hash = "sha256-q73oGQYSWx1aFy9IvbGpecOoc0wLEY2IzJH9GufnvCs="; 24 fetchSubmodules = true; 25 }; 26 ··· 29 cp -v '${nnue}' 'Fairy-Stockfish/src/${nnueFile}' 30 ''; 31 32 + # Copying again bacause the file is deleted during build. 33 + postBuild = '' 34 + cp -v '${nnue}' 'Stockfish/src/${nnueFile}' 35 + ''; 36 37 + cargoHash = "sha256-NO3u2ZXSiDQnZ/FFZLOtTnQoGMyN9pSI4sqGIXtjEcI="; 38 39 meta = with lib; { 40 description = "Distributed Stockfish analysis for lichess.org"; 41 + homepage = "https://github.com/lichess-org/fishnet"; 42 license = licenses.gpl3Plus; 43 maintainers = with maintainers; [ tu-maurice ]; 44 + platforms = [ "aarch64-linux" "x86_64-linux" ]; 45 }; 46 }