2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
2019-12-23 08:23:15 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "unpfs";
|
2021-11-05 14:46:01 +00:00
|
|
|
version = "unstable-2021-04-23";
|
2019-12-23 08:23:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pfpacket";
|
|
|
|
repo = "rust-9p";
|
2021-11-05 14:46:01 +00:00
|
|
|
rev = "6d9b62aa182c5764e00b96f93109feb605d9eac9";
|
|
|
|
sha256 = "sha256-zyDkUb+bFsVnxAE4UODbnRtDim7gqUNuY22vuxMsLZM=";
|
2019-12-23 08:23:15 +00:00
|
|
|
};
|
|
|
|
|
2023-07-25 13:27:31 +00:00
|
|
|
sourceRoot = "${src.name}/example/unpfs";
|
2019-12-23 08:23:15 +00:00
|
|
|
|
2021-11-05 14:46:01 +00:00
|
|
|
cargoSha256 = "sha256-v8hbxKuxux0oYglEIK5dM9q0oBQzjyYDP1JB1cYR/T0=";
|
2019-12-23 08:23:15 +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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-12-23 08:23:15 +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;
|
|
|
|
};
|
|
|
|
}
|