diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-31 15:03:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 15:03:05 +0100 |
commit | b934c1480127f9365061a3ad8184c5c2b9dc4455 (patch) | |
tree | 4a587228c558e03058cbd6e715b9062303ad50ae /pkgs | |
parent | e1a105f7038608063ffeac33e18948323714afc0 (diff) | |
parent | 30a04f134941de8af07757bd94f856cc288c653b (diff) |
Merge pull request #263247 from dmytrokyrychuk/update-fishnet-2.7.1
fishnet: 2.5.1 -> 2.7.1
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/fishnet/Cargo.lock.patch | 13 | ||||
-rw-r--r-- | pkgs/servers/fishnet/default.nix | 25 |
2 files changed, 12 insertions, 26 deletions
diff --git a/pkgs/servers/fishnet/Cargo.lock.patch b/pkgs/servers/fishnet/Cargo.lock.patch deleted file mode 100644 index 7929eeee088e6..0000000000000 --- a/pkgs/servers/fishnet/Cargo.lock.patch +++ /dev/null @@ -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", \ No newline at end of file diff --git a/pkgs/servers/fishnet/default.nix b/pkgs/servers/fishnet/default.nix index 10695e54781f1..6a808080517b4 100644 --- a/pkgs/servers/fishnet/default.nix +++ b/pkgs/servers/fishnet/default.nix @@ -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" ]; }; } |