Eelco Dolstra
36b90e72d7
nix-shell: Add --packages flag
...
This allows you to easily set up a build environment containing the
specified packages from Nixpkgs. For example:
$ nix-shell -p sqlite xorg.libX11 hello
will start a shell in which the given packages are present.
2014-02-19 17:08:01 +01:00
Eelco Dolstra
c31836008e
nix-instantiate: Add a flag --expr / -E to read expressions from the command line
...
This is basically a shortcut for ‘echo 'expr...' | nix-instantiate -’.
Also supported by nix-build and nix-shell.
2014-02-19 16:30:19 +01:00
Eelco Dolstra
e81d38c02b
nix-shell: Execute shellHook if it exists
...
Since normal builds don't execute shellHook, this allows nix-shell
specific customisation. Suggested by Domen.
2014-02-17 13:34:24 +01:00
Eelco Dolstra
b632153ebd
nix-shell: Use shell.nix as the default expression if it exists
2014-02-10 10:25:13 +01:00
Ivan Kozik
6cd6ce5608
Fix nix-shell command
2013-08-26 11:15:22 +02:00
Eelco Dolstra
2bc5de8635
Rename ‘nix-build --run-env’ to ‘nix-shell’
2013-07-19 12:02:44 +02:00