about summary refs log tree commit diff
path: root/doc
AgeCommit message (Collapse)AuthorFilesLines
2017-09-05 Add automatic garbage collectionEelco Dolstra1-0/+4
Nix can now automatically run the garbage collector during builds or while adding paths to the store. The option "min-free = <bytes>" specifies that Nix should run the garbage collector whenever free space in the Nix store drops below <bytes>. It will then delete garbage until "max-free" bytes are available. Garbage collection during builds is asynchronous; running builds are not paused and new builds are not blocked. However, there also is a synchronous GC run prior to the first build/substitution. Currently, no old GC roots are deleted (as in "nix-collect-garbage -d").
2017-08-31 Rename a few configuration optionsEelco Dolstra3-35/+34
In particular, drop the "build-" and "gc-" prefixes which are pointless. So now you can say nix build --no-sandbox instead of nix build --no-build-use-sandbox
2017-08-19 Remove nix-mode.el from Nix.Matthew Bauer1-0/+6
This removes the file nix-mode.el from Nix. The file is now available within the repository https://github.com/NixOS/nix-mode. Fixes #662 Fixes #1040 Fixes #1054 Fixes #1055 Closes #1119 Fixes #1419 NOTE: all of the above should be fixed within NixOS/nix-mode. If one of those hasn’t please reopen within NixOS/nix-mode and not within NixOS/nix.
2017-08-18 update MD5 to SHA-256 in expression-syntaxChase Adams1-2/+2
2017-08-16 Update release notesEelco Dolstra1-0/+5
2017-08-16 Merge branch 'tokenize' of https://github.com/nbp/nixEelco Dolstra1-0/+37
2017-08-15 Add builtins.string function.Nicolas B. Pierron1-0/+37
The function 'builtins.split' takes a POSIX extended regular expression and an arbitrary string. It returns a list of non-matching substring interleaved by lists of matched groups of the regular expression. ```nix with builtins; assert split "(a)b" "abc" == [ "" [ "a" ] "c" ]; assert split "([ac])" "abc" == [ "" [ "a" ] "b" [ "c" ] "" ]; assert split "(a)|(c)" "abc" == [ "" [ "a" null ] "b" [ null "c" ] "" ]; assert split "([[:upper:]]+)" " FOO " == [ " " [ "FOO" ] " " ]; ```
2017-08-15 Move builtins.match documentation between map and mul.Nicolas B. Pierron1-36/+36
2017-08-10 Start of 1.12 release notesEelco Dolstra1-2/+360
2017-07-30 replace "Mac OS X" with "macOS"davidak5-6/+6
except in older release notes where the name was actually Mac OS X.
2017-07-18 Update the mailing list.Graham Christensen1-1/+1
2017-07-17 Make the hashes mirrors used by builtins.fetchurl configurableEelco Dolstra1-0/+28
In particular, this allows it to be disabled in our tests.
2017-07-15 use sha256 hashes in the examplesHarmen3-5/+5
And fix a dead link.
2017-07-10 fix buggy nix-shell man pageRobert Vollmert1-1/+1
2017-07-07 man page (nix-shell): Fix grouping of -p optionRobert Vollmert1-4/+4
Not sure about the raw ellipsis.
2017-07-07 man page (nix-prefetch-url): Add some missing optionsRobert Vollmert1-2/+4
2017-07-07 man page (nix-instantiate): -E is optionalRobert Vollmert1-1/+1
2017-07-07 man page (nix-instantiate): Add --json to synopsis, order variablesRobert Vollmert1-16/+17
2017-07-07 man page (nix-instantiate): Remove non-existent nix-build argument -rRobert Vollmert1-1/+1
2017-07-07 man pages: Consistently separate alternatives by /Robert Vollmert2-12/+6
2017-07-07 man pages: Argument for --max-jobsRobert Vollmert1-2/+2
2017-07-07 man pages: Grouping for option alternativesRobert Vollmert2-10/+28
2017-07-07 glossary: Fix word orderRobert Vollmert1-1/+1
2017-07-06 Fix nix-instantiate manpage indentationRobert Vollmert1-1/+2
The second command variant is now its own cmdsynopsis, which ensures it's not indented as was the case using sbrk.
2017-07-04 Add allow-new-privileges optionEelco Dolstra1-0/+17
This allows builds to call setuid binaries. This was previously possible until we started using seccomp. Turns out that seccomp by default disallows processes from acquiring new privileges. Generally, any use of setuid binaries (except those created by the builder itself) is by definition impure, but some people were relying on this ability for certain tests. Example: $ nix build '(with import <nixpkgs> {}; runCommand "foo" {} "/run/wrappers/bin/ping -c 1 8.8.8.8; exit 1")' --no-allow-new-privileges builder for ‘/nix/store/j0nd8kv85hd6r4kxgnwzvr0k65ykf6fv-foo.drv’ failed with exit code 1; last 2 log lines: cannot raise the capability into the Ambient set : Operation not permitted $ nix build '(with import <nixpkgs> {}; runCommand "foo" {} "/run/wrappers/bin/ping -c 1 8.8.8.8; exit 1")' --allow-new-privileges builder for ‘/nix/store/j0nd8kv85hd6r4kxgnwzvr0k65ykf6fv-foo.drv’ failed with exit code 1; last 6 log lines: PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=46 time=15.2 ms Fixes #1429.
2017-06-14 OS X -> macOSEelco Dolstra1-1/+1
(cherry picked from commit c20641ce569dc1fdeaeaa147b0292f258667f53b)
2017-06-14 Add 1.11.10 release notesEelco Dolstra2-0/+32
(cherry picked from commit 0fb60e4e0f66cc42c7c274acfcf00b51f6c829c4)
2017-05-29 Merge pull request #1393 from pyrtsa/patch-1Eelco Dolstra1-1/+1
Fix variable name typo in derivations doc
2017-05-28 Remove stray `>` in builtins docPyry Jahkola1-1/+1
2017-05-28 Fix variable name typo in derivations docPyry Jahkola1-1/+1
2017-05-24 Merge pull request #1382 from FRidh/patch-1Eelco Dolstra1-0/+18
Document fetchTarball can take a sha256
2017-05-17 Document that builtins.match takes a POSIX extended REEelco Dolstra1-4/+10
2017-05-11 Document fetchTarball can take a sha256Frederik Rietdijk1-0/+18
Note that I refer to `nix-prefetch-url`.
2017-05-10 TypoEelco Dolstra1-1/+1
2017-05-10 Replace readline by linenoiseEelco Dolstra1-0/+6
Using linenoise avoids a license compatibility issue (#1356), is a lot smaller and doesn't pull in ncurses.
2017-05-10 doc: builtins.attrNames returns alphabetically sorted listDomen Kožar1-1/+1
2017-05-03 Merge pull request #1371 from regnat/doc_--xml_fixEelco Dolstra1-10/+8
fix the description of --xml and --json
2017-05-03 doc: fix the description of --xml and --jsonregnat1-10/+8
Those options seem to only apply with --eval and not with --parse.
2017-05-01 Remove $NIX_BUILD_HOOK and $NIX_CURRENT_LOADEelco Dolstra2-146/+2
This is to simplify remote build configuration. These environment variables predate nix.conf. The build hook now has a sensible default (namely build-remote). The current load is kept in the Nix state directory now.
2017-04-24 Merge pull request #1347 from kennyballou/sm-grammar-fixEelco Dolstra1-1/+1
Fix small grammar issue about page
2017-04-24 Merge pull request #1351 from earldouglas/ellipsesEelco Dolstra1-1/+1
Drop misleading ellipses
2017-04-24 Merge pull request #1348 from armijnhemel/nix-envEelco Dolstra1-1/+1
better document --meta option for nix-env
2017-04-20 Drop misleading ellipsesJames Earl Douglas1-1/+1
This portion of the quick start guide may lead to confusion for newcomers to Nix. This change clarifies the example to one that can be copied in its entirety.
2017-04-20 Read per-user settings from ~/.config/nix/nix.confEelco Dolstra1-8/+28
2017-04-20 binary-caches-parallel-connections -> http-connectionsEelco Dolstra1-1/+1
2017-04-20 nix.conf man page: binary-caches -> substitutersEelco Dolstra1-21/+13
2017-04-19 document optionArmijn Hemel1-1/+1
2017-04-19 Fix small grammar issue about pagekballou1-1/+1
Fix subject-verb agreement issue in introduction/about.
2017-04-17 Manual: document tryEvalLinus Heckemann1-0/+13
2017-04-13 Convert Settings to the new config systemEelco Dolstra1-10/+0
This makes all config options self-documenting. Unknown or unparseable config settings and --option flags now cause a warning.