Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust-9p: init #76117

Merged
merged 1 commit into from Dec 23, 2019
Merged

rust-9p: init #76117

merged 1 commit into from Dec 23, 2019

Conversation

7c6f434c
Copy link
Member

Motivation for this change

A Rust-based implementation of 9p2000.L, seems more trustable than C-based diod

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify

cc @qyliss

@@ -0,0 +1,36 @@
{
stdenv, fetchFromGitHub, rust
}:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meta = with stdenv.lib; {
description = "9P2000.L server implementation in Rust";
homepage = "https://github.com/pfpacket/rust-9p";
license = with licenses; [ bsd3 ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
license = with licenses; [ bsd3 ];
license = licenses.bsd3;

I think we usually only use a list for multiple licenses.

maintainers = with maintainers; [ raskin ];

# macOS build fails: https://github.com/pfpacket/rust-9p/issues/7
platforms = with platforms; linux;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There’s nothing that makes macOS intrinsically unsupported, so I think this should be

Suggested change
platforms = with platforms; linux;
platforms = platforms.unix;

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No version of upstream code has ever worked on any version of macOS, as far as I understand. We need either broken or platform limitation, and I think platform limitation is fine in this case.


cargoSha256 = "1d33nwj3i333a6ji3r3037mgg553lc3wsawm0pz13kbvhjf336i8";

RUSTC_BOOTSTRAP=1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RUSTC_BOOTSTRAP=1;
RUSTC_BOOTSTRAP = 1;

@alyssais
Copy link
Member

alyssais commented Dec 22, 2019 via email

@7c6f434c
Copy link
Member Author

7c6f434c commented Dec 23, 2019 via email

@alyssais alyssais merged commit f12afbd into NixOS:master Dec 23, 2019
alyssais pushed a commit to alyssais/nixpkgs that referenced this pull request May 7, 2020
(cherry-picked from NixOS#76117)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants