From 21eb9f187e9ac0558ccab12de6fb31e06019df19 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Wed, 20 Nov 2024 18:26:57 +0900 Subject: [PATCH 1/2] fishnet: format with nixfmt-rfc-style --- pkgs/by-name/fi/fishnet/package.nix | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/fi/fishnet/package.nix b/pkgs/by-name/fi/fishnet/package.nix index f7f2dac86085..61e04c267a33 100644 --- a/pkgs/by-name/fi/fishnet/package.nix +++ b/pkgs/by-name/fi/fishnet/package.nix @@ -1,7 +1,8 @@ -{ lib -, rustPlatform -, fetchFromGitHub -, fetchurl +{ + lib, + rustPlatform, + fetchFromGitHub, + fetchurl, }: let @@ -16,7 +17,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.3"; @@ -41,8 +43,14 @@ in rustPlatform.buildRustPackage rec { 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"; }; } From bbaf0abf9ce813abc09697349c73feb2cb62e453 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Wed, 20 Nov 2024 18:28:49 +0900 Subject: [PATCH 2/2] fishnet: add passthru.tests.version --- pkgs/by-name/fi/fishnet/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/fi/fishnet/package.nix b/pkgs/by-name/fi/fishnet/package.nix index 61e04c267a33..4c72784dbea1 100644 --- a/pkgs/by-name/fi/fishnet/package.nix +++ b/pkgs/by-name/fi/fishnet/package.nix @@ -3,6 +3,8 @@ rustPlatform, fetchFromGitHub, fetchurl, + testers, + fishnet, }: let @@ -39,6 +41,10 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-Fb28XNhCt88PFnJ4s0I80L/rLJtBTEZ8Xd/68MYFoLs="; + passthru.tests.version = testers.testVersion { + package = fishnet; + }; + meta = with lib; { description = "Distributed Stockfish analysis for lichess.org"; homepage = "https://github.com/lichess-org/fishnet";