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