Eelco Dolstra
92a848f674
Fix typos
2014-03-11 13:16:21 +01:00
Shea Levy
2f2a20ed18
Document null dynamic attrs
2014-03-11 13:15:06 +01:00
Eelco Dolstra
3a86888fd7
Typo
2014-02-28 14:01:31 +01:00
Eelco Dolstra
7f74513b4e
Also provide an option for setting the curl connection timeout
2014-02-26 16:07:43 +01:00
Shea Levy
733214144a
Document dynamic attributes
...
Signed-off-by: Shea Levy <shea@shealevy.com>
2014-02-26 14:06:45 +01:00
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
e1cf40fa95
nix-instantiate: Rename --eval-only to --eval, --parse-only to --parse
2014-02-19 16:34:24 +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
e707a8a526
Move manpages around
2014-02-19 15:32:19 +01:00
Eelco Dolstra
1da6ae4f99
nix-store --gc --max-freed: Support a unit specifier
...
E.g. "--max-freed 10G" means "free ten gigabytes".
2014-02-17 14:48:50 +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
f9fc6acbf4
Document current meaning of preferLocalBuild
...
Closes #208 .
2014-02-12 10:53:22 +01:00
Eelco Dolstra
57386c9bae
Binary tarball: Automatically create /nix
...
The tarball can now be unpacked anywhere. The installation script
uses "sudo" to create /nix if it doesn't exist. It also fetches the
nixpkgs-unstable channel.
2014-02-10 16:35:59 +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
Shea Levy
e4058fab64
Rename --no-readonly-mode --read-write-mode
...
Signed-off-by: Shea Levy <shea@shealevy.com>
2014-02-07 18:03:38 +01:00
Shea Levy
0c3e8a616e
nix-instantiate: Add a --no-readonly-mode flag
...
This allows running nix-instantiate --eval-only without performing the
evaluation in readonly mode, letting features like import from
derivation and automatic substitution of builtins.storePath paths work.
Signed-off-by: Shea Levy <shea@shealevy.com>
2014-02-07 18:03:38 +01:00
Eelco Dolstra
6dca72006a
Only run "git ls-files" when doing "make check"
2014-02-01 16:30:24 +01:00
Eelco Dolstra
844d83352c
More "make dist" fixes
2014-02-01 15:18:48 +01:00
Eelco Dolstra
6ef32bddc1
Fix "make dist"
2014-02-01 14:38:12 +01:00
Eelco Dolstra
0c6d62cf27
Remove Automakefiles
2014-02-01 13:54:38 +01:00
Eelco Dolstra
16e7d69209
Update Makefile variable names
2014-02-01 13:54:38 +01:00
Eelco Dolstra
ac8c2ef1aa
Build/install manual
2014-02-01 11:30:21 +01:00
Eelco Dolstra
e640d67144
Document nulls
2014-01-13 13:50:12 +01:00
Eelco Dolstra
77c13cdf56
Add a toJSON primop
2013-11-19 00:04:11 +01:00
Eelco Dolstra
a478e8a7bb
Remove nix-setuid-helper
...
AFAIK, nobody uses it, it's not maintained, and it has no tests.
2013-11-14 11:57:37 +01:00
Eelco Dolstra
1dacd427cd
Update release notes, set version for 1.6.1 release
2013-10-28 11:56:21 +00:00
Eelco Dolstra
36e67ff16b
Undocument obsolete form of "let"
2013-10-24 22:06:39 +02:00
Eelco Dolstra
fba17a9043
Doc fix
2013-10-24 22:05:58 +02:00
Eelco Dolstra
5bc41d78ff
Rename "attribute sets" to "sets"
...
We don't have any other kind of sets so calling them attribute sets is
unnecessarily verbose.
2013-10-24 16:41:04 +02:00
Eelco Dolstra
9e4bb20455
Manual: Fix broken URLs
...
Fixes #172 .
2013-10-24 16:02:08 +02:00
Eelco Dolstra
a5684e09d3
Document typeOf
2013-10-24 02:56:00 +02:00
Eelco Dolstra
6da92d96ae
Document NIX_SHOW_STATS and NIX_COUNT_CALLS
2013-10-24 02:22:24 +02:00
Eelco Dolstra
792fd51f41
Fold two stack trace messages in derivations
...
Combined with the previous changes, stack traces involving derivations
are now much less verbose, since something like
while evaluating the builtin function `getAttr':
while evaluating the builtin function `derivationStrict':
while instantiating the derivation named `gtk+-2.24.20' at `/home/eelco/Dev/nixpkgs/pkgs/development/libraries/gtk+/2.x.nix:11:3':
while evaluating the derivation attribute `propagatedNativeBuildInputs' at `/home/eelco/Dev/nixpkgs/pkgs/stdenv/generic/default.nix:78:17':
while evaluating the attribute `outPath' at `/nix/store/212ngf4ph63mp6p1np2bapkfikpakfv7-nix-1.6/share/nix/corepkgs/derivation.nix:18:9':
...
now reads
while evaluating the attribute `propagatedNativeBuildInputs' of the derivation `gtk+-2.24.20' at `/home/eelco/Dev/nixpkgs/pkgs/development/libraries/gtk+/2.x.nix:11:3':
...
2013-10-17 11:57:25 +02:00
Eelco Dolstra
bb659bad81
Nix 1.6.1 release notes
2013-10-17 11:40:20 +02:00
goblin
d7625b5c2d
two typos
2013-10-17 00:59:19 +02:00
Eelco Dolstra
d5529f5b85
Version was called 1.6, not 1.6.0
2013-09-10 17:48:11 +02:00
Eelco Dolstra
fecad91b67
Update release notes
2013-09-10 11:21:30 +02:00
Domen Kožar
4b83830d0c
typo
2013-09-06 15:18:07 +02:00
Eelco Dolstra
2c1ecf8e81
nix-env -i: Add a flag ‘--remove-all’ / ‘-r’
...
This is equivalent to running ‘nix-env -e '*'’ first, except that it
happens in a single transaction. Thus, ‘nix-env -i pkgs...’ replaces
the profile with the specified set of packages.
The main motivation is to support declarative package management
(similar to environment.systemPackages in NixOS). That is, if you
have a specification ‘profile.nix’ like this:
with import <nixpkgs> {};
[ thunderbird
geeqie
...
]
then after any change to ‘profile.nix’, you can run:
$ nix-env -f profile.nix -ir
to update the profile to match the specification. (Without the ‘-r’
flag, if you remove a package from ‘profile.nix’, it won't be removed
from the actual profile.)
Suggested by @zefhemel.
2013-09-03 21:21:14 +02:00
Eelco Dolstra
c28dfc0305
Manual: Make '' a bit clearer
...
Issue #162 .
2013-09-02 13:24:29 +02:00
Eelco Dolstra
e9b92169a5
Fix manual error
...
Reported by Matija Šuklje.
Fixes #163 .
2013-09-02 13:19:34 +02:00
Eelco Dolstra
ecd830b3b9
Update the release notes
2013-09-02 13:11:36 +02:00
Eelco Dolstra
efe4289464
Add an option to limit the log output of builders
...
This is mostly useful for Hydra to deal with builders that get stuck
in an infinite loop writing data to stdout/stderr.
2013-09-02 11:58:18 +02:00
Ivan Kozik
6cd6ce5608
Fix nix-shell command
2013-08-26 11:15:22 +02:00
Ivan Kozik
34bb806f74
Fix typos, especially those that end up in the Nix manual
2013-08-26 11:15:22 +02:00
Eelco Dolstra
03eaef3d7a
Manual: Don't use actual hashes of Nix dependencies
...
These cause an unnecessary runtime dependency :-)
2013-08-23 10:12:20 +02:00
Eelco Dolstra
b3110a15e9
Fix corrupt PNG
...
Libpng used to accept this, but no longer does.
2013-08-21 12:53:51 +02:00
Eelco Dolstra
7b09e9f2c4
Add hacking notes plus a script for running nix-shell
2013-07-19 16:51:31 +02:00
Eelco Dolstra
2bc5de8635
Rename ‘nix-build --run-env’ to ‘nix-shell’
2013-07-19 12:02:44 +02:00
Eelco Dolstra
dc5f2e7da6
nix-build --run-env: Add a ‘--pure’ flag
...
This causes the environment to be (almost) cleared, thus giving a
shell that more closely resembled the actual Nix derivation.
2013-07-19 11:23:32 +02:00
Domen Kožar
620d57f036
doc: typo
2013-07-12 11:27:43 +02:00
Eelco Dolstra
656390062a
nix-build --run-env: Source $stdenv/setup in the interactive shell
...
This ensures that not just environment variables are set, but also
shell functions such as unpackPhase, configurePhase and so on.
2013-07-11 14:32:22 +02:00
Eelco Dolstra
b584a42e3d
Manual: auto-optimise-store is disabled by default
2013-07-03 18:35:59 +02:00
Eelco Dolstra
5116214343
Add support for uncompressed NARs in binary caches
...
Issue NixOS/hydra#102 .
2013-07-01 21:03:14 +02:00
Eelco Dolstra
6016bcd30e
Update release notes for Nix 1.5.3
2013-06-17 11:47:38 +02:00
Eelco Dolstra
bfee9a2581
Typo
2013-06-13 14:51:11 +02:00
Eelco Dolstra
f0576d6775
Update the default binary cache URL to cache.nixos.org
2013-06-05 13:36:43 +02:00
Eelco Dolstra
039d5a023f
.bashrc -> .profile
2013-05-29 12:36:56 +02:00
Eelco Dolstra
6e85d1b5ba
Bump release date
2013-05-13 16:52:08 +02:00
Eelco Dolstra
806970349b
Update release date
2013-05-07 15:46:25 +02:00
Eelco Dolstra
ea019e9a26
Add option ‘extra-binary-caches’
...
This allows providing additional binary caches, useful in scripts like
Hydra's build reproduction scripts, in particular because untrusted
caches are ignored.
2013-05-07 15:37:28 +02:00
Eelco Dolstra
93f4fa8a15
Update release notes
2013-05-03 11:28:32 +02:00
Eelco Dolstra
3628b61ce0
Nix 1.5.2 release notes
2013-05-01 13:31:33 +02:00
Eelco Dolstra
05420e7883
Manual: Add a missing step to the build instructions
...
Reported by Johan Grande.
2013-04-09 17:57:48 +02:00
Eelco Dolstra
a68ebf8e37
Require Bison 2.6
2013-03-14 18:33:15 +01:00
Eelco Dolstra
bdd4646338
Revert "Prevent config.h from being clobbered"
...
This reverts commit 28bba8c44f
.
2013-03-08 01:24:59 +01:00
Eelco Dolstra
28bba8c44f
Prevent config.h from being clobbered
2013-03-07 23:55:55 +01:00
Eelco Dolstra
9fa1bee575
Update release notes
...
Also use a point release version number as suggested by several
people.
2013-02-28 19:36:02 +01:00
Eelco Dolstra
0111ba98ea
Handle hard links to other files in the output
2013-02-27 17:18:41 +01:00
Eelco Dolstra
ca9c02dff1
Update release notes
2013-02-26 13:23:09 +01:00
Eelco Dolstra
79a3ba7fa3
Document ‘hashString’
2013-02-08 20:04:14 +01:00
Eelco Dolstra
9842077cb2
Improve -I description
...
Issue #88 .
2013-01-24 13:00:44 +01:00
Eelco Dolstra
92926be2fe
Fix "0 store paths deleted" message
2013-01-04 15:17:19 +01:00
Eelco Dolstra
def5160b61
Clear any immutable bits in the Nix store
...
Doing this once makes subsequent operations like garbage collecting
more efficient since we don't have to call makeMutable() first.
2013-01-03 12:59:23 +01:00
Eelco Dolstra
f12492c66d
Manual: Fix "nix-store --export" example
2013-01-02 22:36:08 +01:00
Eelco Dolstra
aebea2e489
Reinstate the http://nixos.org/binary-cache default for the binary-caches setting
2013-01-02 22:16:37 +01:00
Eelco Dolstra
42d6f640c1
Update release notes
2013-01-02 13:00:55 +01:00
Eelco Dolstra
b7629778ef
Allow mounting a path in a different location in the chroot
...
Fixes #24 .
2012-12-29 23:04:02 +01:00
Eelco Dolstra
68dcbb187e
download-from-binary-cache: Use the channels of the calling user rather than root
...
This should make live easier for single-user (non-daemon)
installations. Note that when the daemon is used, the "calling user"
is root so we're not using any untrusted caches.
2012-12-21 15:00:07 +01:00
Eelco Dolstra
5ee7d8fbab
Typo fix
2012-12-21 00:18:59 +01:00
Eelco Dolstra
9fa12fc201
Allow setting the profile location using $NIX_PROFILE
...
Fixes #69 .
2012-12-12 16:01:46 +01:00
Eelco Dolstra
8cc19ed089
Set a long SQLite timeout in the binary cache substituter
2012-12-06 11:43:34 +01:00
Eelco Dolstra
0f96966a44
Add release date
2012-12-05 11:03:06 +01:00
Eelco Dolstra
a7b4aaa2c3
Updated release notes
2012-12-04 17:41:51 +01:00
Eelco Dolstra
094a08f839
Document new primops
2012-12-04 17:15:32 +01:00
Eelco Dolstra
24d5875514
Document multiple output support
2012-12-04 16:03:56 +01:00
Eelco Dolstra
a3d6585c5a
nix-copy-closure: Add flag ‘--use-substitutes’
2012-11-23 16:20:16 +01:00
Eelco Dolstra
9de6bc5d05
nix-store -r: Add ‘--ignore-unknown’ flag
...
This flag causes paths that do not have a known substitute to be
quietly ignored. This is mostly useful for Charon, allowing it to
speed up deployment by letting a machine use substitutes for all
substitutable paths, instead of uploading them. The latter is
frequently faster, e.g. if the target machine has a fast Internet
connection while the source machine is on a slow ADSL line.
2012-11-20 00:27:25 +01:00
Eelco Dolstra
182e15b661
Manual: Don't use a store path in our closure
...
http://hydra.nixos.org/build/3313227
2012-11-09 16:30:15 +01:00
Eelco Dolstra
a9a8baaccb
Use a shorter Nixpkgs channel URL
2012-11-09 13:33:35 +01:00
Eelco Dolstra
c31ebc50aa
Update release notes
2012-11-09 13:33:24 +01:00
Eelco Dolstra
bbc107ef1e
Process binary caches in order of priority
...
Binary caches can now specify a priority in their nix-cache-info file.
The binary cache substituter checks caches in order of priority. This
is to ensure that fast, static caches like nixos.org/binary-cache are
processed before slow, dynamic caches like hydra.nixos.org.
2012-11-06 17:45:20 +01:00
Eelco Dolstra
3a95e1a17c
Update nix-push manpage and document the binary cache format
2012-11-06 15:49:53 +01:00
Eelco Dolstra
620e92e880
Add an option ‘use-binary-caches’
...
This allows disabling the use of binary caches, e.g.
$ nix-build ... --option use-binary-caches false
Note that
$ nix-build ... --option binary-caches ''
does not disable all binary caches, since the caches defined by
channels will still be used.
2012-11-06 13:44:59 +01:00
Eelco Dolstra
a28b4445a4
nix-prefetch-url: Improve option handling
2012-10-23 18:04:11 +02:00
Eelco Dolstra
ac238d619c
Typo
...
Reported by Shea.
2012-10-12 10:21:04 -04:00
Eelco Dolstra
bfaa5635de
Manual: Don't use a store path that actually exists
...
http://hydra.nixos.org/build/3124130
2012-10-04 13:37:30 -04:00
Eelco Dolstra
e35d6f78dc
Rename nix-worker to nix-daemon
2012-10-03 17:59:23 -04:00
Eelco Dolstra
522ecab9b8
Drop support for running nix-worker in "slave" mode
...
AFAIK nobody uses this, setuid binaries are evil, and there is no good
reason why people can't just run the daemon.
2012-10-03 17:30:45 -04:00
Eelco Dolstra
9c41c66c5b
Document ‘--repair’
2012-10-03 15:53:25 -04:00