Skip to content
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

nix build: print built derivation paths (cachix support/nix-build compatibility) #2622

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@Mic92
Copy link
Contributor

commented Jan 10, 2019

Getting the build path name after a build is a common use case
not supported by nix build yet.
This is for example used in shell scripts like this: $(nix-build)/foo
Cachix even built a business model around it: nix-build | cachix

I have tested that locally and run the tests.
Some tests seem to fail without a sandbox but not due to my change as far as I can tell.

nix build: print build derivations
Getting the build path name after a build is a common use case
not supported by nix build yet.
This is for example used in shell scripts like this: $(nix-build)/foo
Cachix even built a business model around it: nix-build | cachix
@makefu

makefu approved these changes Jan 10, 2019

Copy link

left a comment

Tested the patch, looks like exactly what i am missing right now with nix build:

$ nix build nixUnstable nix -f '<nixpkgs>' --no-link    
/nix/store/8ag4fs10ph11y1m9lar3y0spwjwbd9dp-nix-2.2pre6526_9f99d624
/nix/store/6kf0zrv27k47z47d315p51p1q8s7bdvj-nix-2.1.3

@Mic92 Mic92 changed the title nix build: print build derivations (cachix support/nix-build compatibility) nix build: print built derivation paths (cachix support/nix-build compatibility) Jan 18, 2019

@domenkozar domenkozar requested a review from edolstra Jan 27, 2019

@mickours

This comment has been minimized.

Copy link
Contributor

commented Jun 17, 2019

Ping! Any chance this will be merged at some point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.