3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/unpfs/default.nix
Daniël de Kok 85f96822a0 treewide: fix cargoSha256/cargoHash
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.
2021-05-08 00:36:37 -07:00

35 lines
951 B
Nix

{ lib, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "unpfs";
version = "0.0.2019-05-17";
src = fetchFromGitHub {
owner = "pfpacket";
repo = "rust-9p";
rev = "01cf9c60bff0f35567d876db7be7fb86032b44eb";
sha256 = "0mhmr1912z5nyfpcvhnlgb3v67a5n7i2n9l5abi05sfqffqssi79";
};
sourceRoot = "source/example/unpfs";
cargoSha256 = "1vdk99qz23lkh5z03qjjs3d6p2vdmxrmd2km9im94gzgcyb2fvjs";
RUSTC_BOOTSTRAP = 1;
postInstall = ''
install -D -m 0444 ../../README* -t "$out/share/doc/${pname}"
install -D -m 0444 ../../LICEN* -t "$out/share/doc/${pname}"
'';
meta = with lib; {
description = "9P2000.L server implementation in Rust";
homepage = "https://github.com/pfpacket/rust-9p";
license = licenses.bsd3;
maintainers = with maintainers; [ raskin ];
# macOS build fails: https://github.com/pfpacket/rust-9p/issues/7
platforms = with platforms; linux;
};
}