diff --git a/pkgs/by-name/fi/fishnet/package.nix b/pkgs/by-name/fi/fishnet/package.nix index 77149af5d26c..faf4a244057f 100644 --- a/pkgs/by-name/fi/fishnet/package.nix +++ b/pkgs/by-name/fi/fishnet/package.nix @@ -1,7 +1,10 @@ -{ lib -, rustPlatform -, fetchFromGitHub -, fetchurl +{ + lib, + rustPlatform, + fetchFromGitHub, + fetchurl, + testers, + fishnet, }: let @@ -16,7 +19,8 @@ let url = "https://tests.stockfishchess.org/api/nn/${nnueSmallFile}"; sha256 = "sha256-N/GPYtdy8xB+HWqso4mMEww8hvKrY+ZVX7vKIGNaiZ0="; }; -in rustPlatform.buildRustPackage rec { +in +rustPlatform.buildRustPackage rec { pname = "fishnet"; version = "2.9.4"; @@ -37,12 +41,22 @@ in rustPlatform.buildRustPackage rec { cargoHash = "sha256-HuVEg8uJ1WbXzYaXCPBobmxhbhk+X8D/xFcM2wE8Lh0="; + passthru.tests.version = testers.testVersion { + package = fishnet; + }; + meta = with lib; { description = "Distributed Stockfish analysis for lichess.org"; homepage = "https://github.com/lichess-org/fishnet"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ tu-maurice thibaultd ]; - platforms = [ "aarch64-linux" "x86_64-linux" ]; + maintainers = with maintainers; [ + tu-maurice + thibaultd + ]; + platforms = [ + "aarch64-linux" + "x86_64-linux" + ]; mainProgram = "fishnet"; }; }