-
-
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
tldr: add support for darwin #44384
tldr: add support for darwin #44384
Conversation
pkgs/tools/misc/tldr/default.nix
Outdated
@@ -11,9 +11,14 @@ stdenv.mkDerivation rec { | |||
sha256 = "10ylpiqc06p0qpma72vwksd7hd107s0vlx9c6s9rz4vc3i274lb6"; | |||
}; | |||
|
|||
buildInputs = [ curl clang libzip ]; | |||
buildInputs = [ git curl clang libzip ]; |
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.
Git should be left out. It is just used for getting the tag which won't work here because fetchFromGitHub leaves out the .git directory.
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 pointer 😄
pkgs/tools/misc/tldr/default.nix
Outdated
nativeBuildInputs = [ pkgconfig ]; | ||
|
||
preConfigure = stdenv.lib.optionalString stdenv.isDarwin '' | ||
substituteInPlace Makefile --replace "gcc" "$CC" |
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.
I think you can also do makeFlags = [ "CC=$CC" ];
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.
I tried and can't get it work using makeFlags
:/ Thanks!
Thanks for the review @matthewbauer. See new commit. Cheers |
@GrahamcOfBorg build tldr |
Success on aarch64-linux (full log) Attempted: tldr Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: tldr Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: tldr Partial log (click to expand)
|
Motivation for this change
Adds darwin support for
tldr
. Also fixes warning due to git being missing.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)