aboutsummaryrefslogtreecommitdiff
path: root/src/nix/registry.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-10-18 21:06:36 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-10-22 13:40:30 +0200
commitf9438fb64a223c05ebcfffa9706e1ca811a87d70 (patch)
tree87ca9a2190f46985a8ee795a62e558ef498b0f15 /src/nix/registry.cc
parent21830cb0447f2ad3d436a8b9df43222a787bb80e (diff)
nix develop: Add --redirect flag to redirect dependencies
This is primarily useful if you're hacking simultaneously on a package and one of its dependencies. E.g. if you're hacking on Hydra and Nix, you would start a dev shell for Nix, and then a dev shell for Hydra as follows: $ nix develop \ --redirect .#hydraJobs.build.x86_64-linux.nix ~/Dev/nix/outputs/out \ --redirect .#hydraJobs.build.x86_64-linux.nix.dev ~/Dev/nix/outputs/dev (This assumes hydraJobs.build.x86_64-linux has a passthru.nix attribute. You can also use a store path.) This causes all references in the environment to those store paths to be rewritten to ~/Dev/nix/outputs/{out,dev}. Note: unfortunately, you may need to set LD_LIBRARY_PATH=~/Dev/nix/outputs/out/lib because Nixpkgs' ld-wrapper only adds -rpath entries for -L flags that point to the Nix store.
Diffstat (limited to 'src/nix/registry.cc')
0 files changed, 0 insertions, 0 deletions