-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
mcrcon: init at 0.0.5 #26215
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
mcrcon: init at 0.0.5 #26215
Conversation
@dermetfan, thanks for your PR! By analyzing the history of the files in this pull request, we identified @zimbatm, @zraexy and @vcunat to be potential reviewers. |
buildInputs = [ gcc ]; | ||
|
||
buildPhase = '' | ||
gcc mcrcon.c -o mcrcon |
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.
$CC mcrcon.c -o mcrcon
might be more portable.
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
install -m 755 mcrcon $out/bin |
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.
installPhase = ''
install -D -m755 mcrcon $out/bin/mcron
'';
sha256 = "1pwr1cjldjy8bxqpp7w03nvdpw8l4vqfnk6w6b3mf0qpap1k700z"; | ||
}; | ||
|
||
buildInputs = [ gcc ]; |
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.
are you sure there is a hard dependency on gcc? If not you can just remove this line and use the command as shown above.
install -m 755 mcrcon $out/bin | ||
''; | ||
|
||
phases = "unpackPhase buildPhase installPhase fixupPhase"; |
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.
These are all default phases. You can remove this.
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.
Thanks for the review! I hoped excluding some could speed up the build. Not a good practice?
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.
@dermetfan disabling problematic phases as necessary is more robust, generally.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)