summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-06-18 13:07:53 -0600
committerBen Burdette <bburdette@gmail.com>2020-06-18 13:07:53 -0600
commite6f93b94fc38d94827778bcaa64642aee5030ecd (patch)
treeaa80872b4ed72abc548a41f52ec876be76fc85a0
parent2f19650768e2bbef0f7ad819c5aa3dce5084d56d (diff)
parent6c000eed80565d83d596da800ca0db92e248342e (diff)
Merge branch 'master' into caveman-LOCs
-rw-r--r--.gitignore3
-rw-r--r--Makefile1
-rw-r--r--doc/manual/advanced-topics/diff-hook.xml6
-rw-r--r--doc/manual/advanced-topics/post-build-hook.xml2
-rw-r--r--doc/manual/command-ref/nix-env.xml2
-rw-r--r--doc/manual/command-ref/opt-common-syn.xml6
-rw-r--r--doc/manual/command-ref/opt-common.xml31
-rw-r--r--doc/manual/installation/env-variables.xml2
-rw-r--r--doc/manual/installation/installing-binary.xml4
-rw-r--r--doc/manual/introduction/quick-start.xml2
-rwxr-xr-xmaintainers/upload-release.pl8
-rw-r--r--mk/libraries.mk3
-rw-r--r--perl/lib/Nix/Store.xs4
-rw-r--r--release-common.nix1
-rw-r--r--release.nix63
-rw-r--r--shell.nix2
-rw-r--r--src/build-remote/build-remote.cc4
-rw-r--r--src/libexpr/attr-path.cc17
-rw-r--r--src/libexpr/attr-path.hh2
-rw-r--r--src/libexpr/attr-set.hh9
-rw-r--r--src/libexpr/eval-inline.hh18
-rw-r--r--src/libexpr/eval.cc113
-rw-r--r--src/libexpr/eval.hh6
-rw-r--r--src/libexpr/get-drvs.cc2
-rw-r--r--src/libexpr/lexer.l1
-rw-r--r--src/libexpr/local.mk2
-rw-r--r--src/libexpr/nixexpr.cc11
-rw-r--r--src/libexpr/nixexpr.hh9
-rw-r--r--src/libexpr/parser.y89
-rw-r--r--src/libexpr/primops.cc480
-rw-r--r--src/libexpr/primops.hh17
-rw-r--r--src/libexpr/primops/context.cc27
-rw-r--r--src/libexpr/primops/fetchGit.cc18
-rw-r--r--src/libexpr/primops/fetchMercurial.cc18
-rw-r--r--src/libexpr/primops/fetchTree.cc34
-rw-r--r--src/libexpr/primops/fromTOML.cc9
-rw-r--r--src/libfetchers/fetchers.cc6
-rw-r--r--src/libfetchers/github.cc2
-rw-r--r--src/libfetchers/local.mk2
-rw-r--r--src/libfetchers/tarball.cc9
-rw-r--r--src/libmain/common-args.cc9
-rw-r--r--src/libmain/loggers.cc52
-rw-r--r--src/libmain/loggers.hh20
-rw-r--r--src/libmain/progress-bar.cc (renamed from src/nix/progress-bar.cc)27
-rw-r--r--src/libmain/progress-bar.hh (renamed from src/nix/progress-bar.hh)2
-rw-r--r--src/libmain/shared.cc25
-rw-r--r--src/libstore/binary-cache-store.cc14
-rw-r--r--src/libstore/build.cc310
-rw-r--r--src/libstore/builtins/buildenv.cc14
-rw-r--r--src/libstore/daemon.cc17
-rw-r--r--src/libstore/derivations.cc59
-rw-r--r--src/libstore/derivations.hh10
-rw-r--r--src/libstore/export-import.cc4
-rw-r--r--src/libstore/filetransfer.cc27
-rw-r--r--src/libstore/gc.cc35
-rw-r--r--src/libstore/globals.hh2
-rw-r--r--src/libstore/legacy-ssh-store.cc2
-rw-r--r--src/libstore/local-fs-store.cc4
-rw-r--r--src/libstore/local-store.cc76
-rw-r--r--src/libstore/local-store.hh2
-rw-r--r--src/libstore/local.mk2
-rw-r--r--src/libstore/misc.cc36
-rw-r--r--src/libstore/names.cc (renamed from src/libexpr/names.cc)0
-rw-r--r--src/libstore/names.hh (renamed from src/libexpr/names.hh)0
-rw-r--r--src/libstore/nar-info-disk-cache.cc10
-rw-r--r--src/libstore/nar-info.cc10
-rw-r--r--src/libstore/optimise-store.cc8
-rw-r--r--src/libstore/parsed-derivations.cc9
-rw-r--r--src/libstore/parsed-derivations.hh4
-rw-r--r--src/libstore/path.cc89
-rw-r--r--src/libstore/path.hh72
-rw-r--r--src/libstore/remote-fs-accessor.cc2
-rw-r--r--src/libstore/remote-store.cc21
-rw-r--r--src/libstore/remote-store.hh2
-rw-r--r--src/libstore/sqlite.cc8
-rw-r--r--src/libstore/store-api.cc72
-rw-r--r--src/libstore/store-api.hh14
-rw-r--r--src/libstore/worker-protocol.hh2
-rw-r--r--src/libutil/ansicolor.hh2
-rw-r--r--src/libutil/args.cc11
-rw-r--r--src/libutil/args.hh2
-rw-r--r--src/libutil/config.hh1
-rw-r--r--src/libutil/error.cc12
-rw-r--r--src/libutil/error.hh15
-rw-r--r--src/libutil/hash.cc14
-rw-r--r--src/libutil/hash.hh6
-rw-r--r--src/libutil/json.cc2
-rw-r--r--src/libutil/local.mk2
-rw-r--r--src/libutil/logging.cc32
-rw-r--r--src/libutil/logging.hh8
-rw-r--r--src/libutil/rust-ffi.cc2
-rw-r--r--src/libutil/rust-ffi.hh2
-rw-r--r--src/libutil/serialise.cc4
-rw-r--r--src/libutil/tests/hash.cc16
-rw-r--r--src/libutil/tests/logging.cc28
-rw-r--r--src/libutil/tests/pool.cc127
-rw-r--r--src/libutil/types.hh3
-rw-r--r--src/libutil/util.cc14
-rw-r--r--src/libutil/util.hh9
-rwxr-xr-xsrc/nix-build/nix-build.cc25
-rw-r--r--src/nix-daemon/nix-daemon.cc30
-rw-r--r--src/nix-env/nix-env.cc22
-rw-r--r--src/nix-env/user-env.cc2
-rw-r--r--src/nix-prefetch-url/nix-prefetch-url.cc2
-rw-r--r--src/nix-store/dotgraph.cc4
-rw-r--r--src/nix-store/graphml.cc4
-rw-r--r--src/nix-store/nix-store.cc50
-rw-r--r--src/nix/command.cc12
-rw-r--r--src/nix/copy.cc2
-rw-r--r--src/nix/develop.cc (renamed from src/nix/dev-shell.cc)20
-rw-r--r--src/nix/installables.cc22
-rw-r--r--src/nix/local.mk4
-rw-r--r--src/nix/main.cc13
-rw-r--r--src/nix/make-content-addressable.cc10
-rw-r--r--src/nix/path-info.cc2
-rw-r--r--src/nix/repl.cc33
-rw-r--r--src/nix/run.cc6
-rw-r--r--src/nix/show-derivation.cc6
-rw-r--r--src/nix/upgrade-nix.cc7
-rw-r--r--src/nix/verify.cc11
-rw-r--r--src/nix/why-depends.cc16
-rw-r--r--src/resolve-system-dependencies/local.mk2
-rw-r--r--src/resolve-system-dependencies/resolve-system-dependencies.cc8
-rw-r--r--tests/remote-store.sh2
124 files changed, 1432 insertions, 1312 deletions
diff --git a/.gitignore b/.gitignore
index ad5684123..983026570 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,6 +49,9 @@ perl/Makefile.config
# /src/libstore/
*.gen.*
+# /src/libutil/
+/src/libutil/tests/libutil-tests
+
/src/nix/nix
# /src/nix-env/
diff --git a/Makefile b/Makefile
index f4ad2c468..6f5a3ea90 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,6 @@
makefiles = \
mk/precompiled-headers.mk \
local.mk \
- nix-rust/local.mk \
src/libutil/local.mk \
src/libutil/tests/local.mk \
src/libstore/local.mk \
diff --git a/doc/manual/advanced-topics/diff-hook.xml b/doc/manual/advanced-topics/diff-hook.xml
index fb4bf819f..f01ab71b3 100644
--- a/doc/manual/advanced-topics/diff-hook.xml
+++ b/doc/manual/advanced-topics/diff-hook.xml
@@ -70,7 +70,7 @@ path just built.</para>
<screen>
$ nix-build ./deterministic.nix -A stable
-these derivations will be built:
+this derivation will be built:
/nix/store/z98fasz2jqy9gs0xbvdj939p27jwda38-stable.drv
building '/nix/store/z98fasz2jqy9gs0xbvdj939p27jwda38-stable.drv'...
/nix/store/yyxlzw3vqaas7wfp04g0b1xg51f2czgq-stable
@@ -85,7 +85,7 @@ checking outputs of '/nix/store/z98fasz2jqy9gs0xbvdj939p27jwda38-stable.drv'...
<screen>
$ nix-build ./deterministic.nix -A unstable
-these derivations will be built:
+this derivation will be built:
/nix/store/cgl13lbj1w368r5z8gywipl1ifli7dhk-unstable.drv
building '/nix/store/cgl13lbj1w368r5z8gywipl1ifli7dhk-unstable.drv'...
/nix/store/krpqk0l9ib0ibi1d2w52z293zw455cap-unstable
@@ -193,7 +193,7 @@ repeat = 1
An example output of this configuration:
<screen>
$ nix-build ./test.nix -A unstable
-these derivations will be built:
+this derivation will be built:
/nix/store/ch6llwpr2h8c3jmnf3f2ghkhx59aa97f-unstable.drv
building '/nix/store/ch6llwpr2h8c3jmnf3f2ghkhx59aa97f-unstable.drv' (round 1/2)...
building '/nix/store/ch6llwpr2h8c3jmnf3f2ghkhx59aa97f-unstable.drv' (round 2/2)...
diff --git a/doc/manual/advanced-topics/post-build-hook.xml b/doc/manual/advanced-topics/post-build-hook.xml
index acfe9e3cc..6cc286ee1 100644
--- a/doc/manual/advanced-topics/post-build-hook.xml
+++ b/doc/manual/advanced-topics/post-build-hook.xml
@@ -122,7 +122,7 @@ post-build-hook = /etc/nix/upload-to-cache.sh
<screen>
$ nix-build -E '(import &lt;nixpkgs&gt; {}).writeText "example" (builtins.toString builtins.currentTime)'
-these derivations will be built:
+this derivation will be built:
/nix/store/s4pnfbkalzy5qz57qs6yybna8wylkig6-example.drv
building '/nix/store/s4pnfbkalzy5qz57qs6yybna8wylkig6-example.drv'...
running post-build-hook '/home/grahamc/projects/github.com/NixOS/nix/post-hook.sh'...
diff --git a/doc/manual/command-ref/nix-env.xml b/doc/manual/command-ref/nix-env.xml
index 2b95b6819..55f25d959 100644
--- a/doc/manual/command-ref/nix-env.xml
+++ b/doc/manual/command-ref/nix-env.xml
@@ -516,7 +516,7 @@ source:
$ nix-env -f '&lt;nixpkgs>' -iA hello --dry-run
(dry run; not doing anything)
installing ‘hello-2.10’
-these paths will be fetched (0.04 MiB download, 0.19 MiB unpacked):
+this path will be fetched (0.04 MiB download, 0.19 MiB unpacked):
/nix/store/wkhdf9jinag5750mqlax6z2zbwhqb76n-hello-2.10
<replaceable>...</replaceable></screen>
diff --git a/doc/manual/command-ref/opt-common-syn.xml b/doc/manual/command-ref/opt-common-syn.xml
index b610b54b9..2660e3bb1 100644
--- a/doc/manual/command-ref/opt-common-syn.xml
+++ b/doc/manual/command-ref/opt-common-syn.xml
@@ -1,5 +1,5 @@
<nop xmlns="http://docbook.org/ns/docbook">
-
+
<arg><option>--help</option></arg>
<arg><option>--version</option></arg>
<arg rep='repeat'>
@@ -12,6 +12,10 @@
<arg choice='plain'><option>--quiet</option></arg>
</arg>
<arg>
+ <option>--log-format</option>
+ <replaceable>format</replaceable>
+</arg>
+<arg>
<group choice='plain'>
<arg choice='plain'><option>--no-build-output</option></arg>
<arg choice='plain'><option>-Q</option></arg>
diff --git a/doc/manual/command-ref/opt-common.xml b/doc/manual/command-ref/opt-common.xml
index 0383bfaed..a68eef1d0 100644
--- a/doc/manual/command-ref/opt-common.xml
+++ b/doc/manual/command-ref/opt-common.xml
@@ -92,6 +92,37 @@
</varlistentry>
+<varlistentry xml:id="opt-log-format"><term><option>--log-format</option> <replaceable>format</replaceable></term>
+
+ <listitem>
+
+ <para>This option can be used to change the output of the log format, with
+ <replaceable>format</replaceable> being one of:</para>
+
+ <variablelist>
+
+ <varlistentry><term>raw</term>
+ <listitem><para>This is the raw format, as outputted by nix-build.</para></listitem>
+ </varlistentry>
+
+ <varlistentry><term>internal-json</term>
+ <listitem><para>Outputs the logs in a structured manner. NOTE: the json schema is not guarantees to be stable between releases.</para></listitem>
+ </varlistentry>
+
+ <varlistentry><term>bar</term>
+ <listitem><para>Only display a progress bar during the builds.</para></listitem&