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

38 lines
831 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-08 18:57:23 +00:00
version = "2.2.4";
2021-01-27 19:01:09 +00:00
src = fetchFromGitHub {
owner = "niklasf";
repo = pname;
rev = "v${version}";
2021-02-08 18:57:23 +00:00
sha256 = "19dh69b6mqx16195w9d20fah4jl8hhbxm84xq4zwsgl4khmw7zqz";
2021-01-27 19:01:09 +00:00
};
2021-02-08 18:57:23 +00:00
cargoSha256 = "0zl2fnmqncyjd52wkn6dddx9lm9ywpw7swy895yq299z2bbbkv3h";
2021-01-27 19:01:09 +00:00
preBuild = ''
rmdir ./assets
ln -snf ${assets}/${assets.relAssetsPath} ./assets
'';
meta = with lib; {
description = "Distributed Stockfish analysis for lichess.org";
homepage = "https://github.com/niklasf/fishnet";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ tu-maurice ];
};
}