fishnet: 2.5.1 -> 2.7.1

This commit is contained in:
Dmytro Kyrychuk 2023-10-24 23:34:03 +00:00
parent 702853c61a
commit 30a04f1349
2 changed files with 12 additions and 26 deletions

View file

@ -1,13 +0,0 @@
diff --git a/Cargo.lock b/Cargo.lock
index 963e40e..fb76d78 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -230,7 +230,7 @@ dependencies = [
[[package]]
name = "fishnet"
-version = "2.5.1-dev"
+version = "2.5.1"
dependencies = [
"arrayvec",
"atty",

View file

@ -6,21 +6,21 @@
}:
let
nnueFile = "nn-13406b1dcbe0.nnue";
nnueFile = "nn-5af11540bbfe.nnue";
nnue = fetchurl {
url = "https://tests.stockfishchess.org/api/nn/${nnueFile}";
sha256 = "sha256-E0BrHcvgo238XgfaUdjbOLekXX2kMHjsJadiTCuDI28=";
hash = "sha256-WvEVQLv+/LVOOMXdAAyrS0ad+nWZodVb5dJyLCCokps=";
};
in
rustPlatform.buildRustPackage rec {
pname = "fishnet";
version = "2.5.1";
version = "2.7.1";
src = fetchFromGitHub {
owner = "niklasf";
owner = "lichess-org";
repo = pname;
rev = "v${version}";
sha256 = "sha256-nVRG60sSpTqfqhCclvWoeyHR0+oO1Jn1PgftigDGq5c=";
hash = "sha256-q73oGQYSWx1aFy9IvbGpecOoc0wLEY2IzJH9GufnvCs=";
fetchSubmodules = true;
};
@ -29,19 +29,18 @@ rustPlatform.buildRustPackage rec {
cp -v '${nnue}' 'Fairy-Stockfish/src/${nnueFile}'
'';
cargoSha256 = "sha256-BJK7M/pjHRj74xoeciavhkK2YRpeogkELIuXetX73so=";
# Copying again bacause the file is deleted during build.
postBuild = ''
cp -v '${nnue}' 'Stockfish/src/${nnueFile}'
'';
# TODO: Cargo.lock is out of date, so fix it. Likely not necessary anymore in
# the next update.
cargoPatches = [
./Cargo.lock.patch
];
cargoHash = "sha256-NO3u2ZXSiDQnZ/FFZLOtTnQoGMyN9pSI4sqGIXtjEcI=";
meta = with lib; {
description = "Distributed Stockfish analysis for lichess.org";
homepage = "https://github.com/niklasf/fishnet";
homepage = "https://github.com/lichess-org/fishnet";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ tu-maurice ];
platforms = [ "x86_64-linux" ];
platforms = [ "aarch64-linux" "x86_64-linux" ];
};
}