mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
8685278f11
This adds nix-run, which is a thin wrapper around nix-build. nix-run calls nix-build, and then executes the resulting build. If no executable artifact is built, nix-runs outputs an error message. myEnvRun calls myEnvFun and builds a script that directly runs the load-env-* script. Together, nix-run and myEnvRun allows you to set up an environment that can be loaded in this way: envs.nix: { gcc = myEnvRun { name = "gcc"; buildInputs = [ gcc ]; }; } $ nix-run -A gcc envs.nix You end up directly in your environment without having to do nix-env -i. You will always have a fresh environment and you don't have to pollute you profile with a lot of env packages. |
||
---|---|---|
.. | ||
build-fhs-chrootenv | ||
buildenv | ||
builder-defs | ||
cabal | ||
clang-wrapper | ||
dotnetenv | ||
fetchbzr | ||
fetchcvs | ||
fetchdarcs | ||
fetchfile | ||
fetchgit | ||
fetchgitrevision | ||
fetchhg | ||
fetchmtn | ||
fetchsvn | ||
fetchsvnrevision | ||
fetchsvnssh | ||
fetchurl | ||
gcc-cross-wrapper | ||
gcc-wrapper | ||
kdewrapper | ||
kernel | ||
make-desktopitem | ||
make-startupitem | ||
make-symlinks | ||
mono-dll-fixer | ||
my-env-run | ||
native-darwin-cctools-wrapper | ||
nuke-references | ||
release | ||
setup-hooks | ||
src-only | ||
substitute | ||
upstream-updater | ||
vm | ||
vsenv | ||
replace-dependency.nix | ||
source-from-head-fun.nix | ||
trivial-builders.nix |