about summary refs log tree commit diff
path: root/scripts/nix-install-package.in
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-03-27T09·40+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-03-27T09·40+0200
commit5144abe5b67628d6968d0ab829aa52a6428a77a6 (patch)
tree09e51c80a4120161051816336e9667a53393b2d5 /scripts/nix-install-package.in
parent3e94ffffd61573624883c02744f20ac3544ff9cb (diff)
Add an option "--exclude" to filter dependencies in "nix-build --run-env"
Sometimes when doing "nix-build --run-env" you don't want all
dependencies to be built.  For instance, if we want to do "--run-env"
on the "build" attribute in Hydra's release.nix (to get Hydra's build
environment), we don't want its "tarball" dependency to be built.  So
we can do:

  $ nix-build --run-env release.nix -A build --exclude 'hydra-tarball'

This will skip the dependency whose name matches the "hydra-tarball"
regular expression.  The "--exclude" option can be repeated any number
of times.
Diffstat (limited to 'scripts/nix-install-package.in')
0 files changed, 0 insertions, 0 deletions