-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
rp: init at 2.1.4 #390159
rp: init at 2.1.4 #390159
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm and output rp
binary works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is somehow a convention to order the attributes as follows:
- pname
- version
- src
- sourceRoot
- *inputs
- *Phase
- meta
But it doesn't really matter. I also annotated some stuff that I would have done differently, but doesn't really matter either.
As you already waited 4 days for your first-time-contribution, I wouldn't wait for another iteration here and go ahead and merge this.
Welcome to the community! 🎉
cmake | ||
ninja | ||
]; | ||
buildInputs = lib.optionals (stdenv.isLinux) [ stdenv.cc.libc.static ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parentheses here are not required AFAIK.
buildInputs = lib.optionals (stdenv.isLinux) [ stdenv.cc.libc.static ]; | |
buildInputs = lib.optionals stdenv.isLinux [ stdenv.cc.libc.static ]; |
installPhase = '' | ||
mkdir -p $out/bin | ||
cp rp-${if stdenv.isDarwin then "osx" else "lin"} $out/bin/rp | ||
''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works, but I would have written it like this:
installPhase = '' | |
mkdir -p $out/bin | |
cp rp-${if stdenv.isDarwin then "osx" else "lin"} $out/bin/rp | |
''; | |
installPhase = let | |
binname = if stdenv.isDarwin | |
then "rp-osx" | |
else "rp-lin"; | |
in '' | |
mkdir -p $out/bin | |
cp ${binname} $out/bin/rp | |
''; |
|
https://github.com/0vercl0k/rp
Changelog: https://github.com/0vercl0k/rp/releases/tag/v2.1.4
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.