2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "1vdk99qz23lkh5z03qjjs3d6p2vdmxrmd2km9im94gzgcyb2fvjs";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
RUSTC_BOOTSTRAP = 1;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -D -m 0444 ../../README* -t "$out/share/doc/${pname}"
|
|
|
|
install -D -m 0444 ../../LICEN* -t "$out/share/doc/${pname}"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|