3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/fishnet/default.nix

41 lines
896 B
Nix
Raw Normal View History

2021-01-27 19:01:09 +00:00
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, xz
, autoPatchelfHook }:
let
assets = import ./assets.nix {
inherit lib stdenv fetchFromGitHub xz autoPatchelfHook;
};
in
rustPlatform.buildRustPackage rec {
pname = "fishnet";
2021-02-27 17:26:42 +00:00
version = "2.2.6";
2021-01-27 19:01:09 +00:00
src = fetchFromGitHub {
owner = "niklasf";
repo = pname;
rev = "v${version}";
2021-02-27 17:26:42 +00:00
sha256 = "0dmc58wzv758b82pjpfzcfi0hr14hqcr61cd9v5xlgk5w78cisjq";
2021-01-27 19:01:09 +00:00
};
cargoSha256 = "1s37b0w1aav6gz399zncfp0zqh5sfy0zmabhl7n8p5cwlmlvnlsj";
2021-01-27 19:01:09 +00:00
preBuild = ''
rmdir ./assets
ln -snf ${assets}/${assets.relAssetsPath} ./assets
'';
2021-02-27 17:26:42 +00:00
passthru.assets = assets;
2021-01-27 19:01:09 +00:00
meta = with lib; {
description = "Distributed Stockfish analysis for lichess.org";
homepage = "https://github.com/niklasf/fishnet";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ tu-maurice ];
2021-02-21 17:11:45 +00:00
platforms = [ "x86_64-linux" ];
2021-01-27 19:01:09 +00:00
};
}