mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:03:22 +00:00
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
41 lines
896 B
Nix
41 lines
896 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, xz
|
|
, autoPatchelfHook }:
|
|
|
|
let
|
|
assets = import ./assets.nix {
|
|
inherit lib stdenv fetchFromGitHub xz autoPatchelfHook;
|
|
};
|
|
in
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "fishnet";
|
|
version = "2.2.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "niklasf";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0dmc58wzv758b82pjpfzcfi0hr14hqcr61cd9v5xlgk5w78cisjq";
|
|
};
|
|
|
|
cargoSha256 = "1s37b0w1aav6gz399zncfp0zqh5sfy0zmabhl7n8p5cwlmlvnlsj";
|
|
|
|
preBuild = ''
|
|
rmdir ./assets
|
|
ln -snf ${assets}/${assets.relAssetsPath} ./assets
|
|
'';
|
|
|
|
passthru.assets = 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 ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|