diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2019-12-23 08:23:15 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-12-23 08:23:15 +0000 |
commit | f12afbd2c2f0b83dbcd4bf9ae1b8050f84597d18 (patch) | |
tree | fb155f182a19e0bb8e8f0883efa5c2ee86035a52 /pkgs/servers/unpfs/default.nix | |
parent | 9dacdec2d9757dd3f2daa68f8760a543581b609a (diff) |
unpfs: init at 0.0.2019-05-17
Diffstat (limited to 'pkgs/servers/unpfs/default.nix')
-rw-r--r-- | pkgs/servers/unpfs/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/servers/unpfs/default.nix b/pkgs/servers/unpfs/default.nix new file mode 100644 index 0000000000000..df6cfb70438f2 --- /dev/null +++ b/pkgs/servers/unpfs/default.nix @@ -0,0 +1,34 @@ +{ stdenv, 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 = "1d33nwj3i333a6ji3r3037mgg553lc3wsawm0pz13kbvhjf336i8"; + + 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 stdenv.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; + }; +} |