-
Notifications
You must be signed in to change notification settings - Fork 0
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
static binary on lts-17 #1
static binary on lts-17 #1
Conversation
Thanks @nh2 ! I assume this makes it faster and avoids recompiling a lof of stuff because it uses a newer nixpkgs which is available in cache.nixos.org, right? Another quick question...what's a good way to get the path to the built binary programmatically? Or at least to the bin folder? I ask because I want to eventually automate the process of making a release tarball and uploading it to github. |
FYI: I didn't measure it or anything but to me it doesn't seem the build goes any faster than before. |
Not because of the binary cache, but simply, but in the newer version of
The echo $($(shell nix-build --no-link -A fullBuildScript))/bin/pid1 That gives: |
@nh2 thanks... Yeah I guess I could to do something like this:
However I'm not sure how to deal with failure in this case. :/ |
@denibertovic I don't follow, why would you want to do
With "the usual" mechanics of POSIX shell to check error codes of programs, Or alternatively, if like me you think that shell scripting should never ever be used because nobody can write even shell oneliners without bugs correctly, use a sensible programming language of your choice (like Python) to invoke the |
I was not aware of this...since I saw a bunch of output before the actual store path I figured it was also printed to stdout.
Yeah that makes sense. Makefile actually complicate things here a bit but I guess I can extract the relevant bits into a shell file (or alternative). Thanks @nh2 |
Like fpco#11 but with upgraded LTS and newer static-haskell-nix, which requires less building.