-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
buck: init at v2017.05.31.01 #26438
buck: init at v2017.05.31.01 #26438
Conversation
|
||
postPatch = '' | ||
for f in $(grep -l -r '/bin/bash'); do | ||
substituteInPlace "$f" --replace '/bin/bash' '${bash}/bin/bash' |
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.
Do you only replace shebangs here? If so, add bash as buildInput
and use patchShebangs .
here.
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 not only used as shebang.
install -D -m755 buck-out/gen/programs/buck.pex $out/bin/buck | ||
wrapProgram $out/bin/buck \ | ||
--prefix PYTHONPATH : $PYTHONPATH \ | ||
--prefix PATH : "${stdenv.lib.makeBinPath [jre watchman]}" |
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 requires java at run-time. Please check that whether jre
or jdk
is required here.
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.
jre_headless
might be also an option to reduce the closure size.
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.
buck
is primarily used as a Java build tool, so I think it's okay to include JDK.
Did you also test to build projects in some languages? Java, C++, Android etc? |
|
||
stdenv.mkDerivation rec { | ||
|
||
let |
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 seems to have no purpose.
It builds a really big Clojure codebase, so I think it checks out on that front. |
Thanks! |
Motivation for this change
This PR introduces the
buck
build tool, developed at Facebook. It contains merely the static .pex file generated bybuck build buck
, not the recommended mutable directory that buck uses to satisfy the version specified by a project's.buckversion
file.Such is life in Nixistan.
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/
)