Open nikitavoloboev opened 2 years ago
related: https://github.com/NixOS/nix.dev/issues/135
Some links on the topic I found:
I do think this should be documented better.
The original issue title seems to have mixed up two aspects:
The special role of default.nix
for the Nix language evaluator and CLI commands
That may be better addressed in a single place in the Nix reference manual: https://github.com/NixOS/nix/issues/11132
Running an executable produced by a derivation.
For sure this is a killer feature, and needs to be made prominent in a little FAQ answer. The answer for stable Nix is
$(nix-build someFile.nix -A someAttr --no-out-link)/bin/someExecutable
A PR addressing that should add (links to) everything needed to fully understand that line, including a self-contained example that can be tested.
Changed the title and added labels.
I searched on internet and in nix.dev and still am confused how to do it.