Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9c02bdc2ae82
Choose a base ref
...
head repository: NixOS/nix
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1af0a165d448
Choose a head ref
Loading
Showing with 5,210 additions and 1,262 deletions.
  1. +0 −1 Makefile
  2. +1 −1 README.md
  3. +2 −2 configure.ac
  4. +0 −4 corepkgs/local.mk
  5. +1 −6 doc/manual/generate-manpage.nix
  6. +3 −1 doc/manual/src/SUMMARY.md.in
  7. +589 −0 doc/manual/src/contributing/cli-guideline.md
  8. +1 −0 doc/manual/src/contributing/contributing.md
  9. 0 doc/manual/src/{ → contributing}/hacking.md
  10. +1 −1 doc/manual/src/installation/prerequisites-source.md
  11. +3 −3 doc/manual/src/introduction.md
  12. +1 −1 src/libexpr/attr-path.cc
  13. +1 −3 src/libexpr/attr-set.cc
  14. +14 −14 src/libexpr/eval-cache.cc
  15. +7 −9 src/libexpr/eval-inline.hh
  16. +102 −132 src/libexpr/eval.cc
  17. +2 −0 src/libexpr/eval.hh
  18. 0 {corepkgs → src/libexpr}/fetchurl.nix
  19. +21 −19 src/libexpr/flake/flake.cc
  20. +15 −15 src/libexpr/get-drvs.cc
  21. +1 −1 src/libexpr/local.mk
  22. +1 −1 src/libexpr/nixexpr.hh
  23. +4 −0 src/libexpr/parser.y
  24. +50 −57 src/libexpr/primops.cc
  25. +1 −1 src/libexpr/primops/fetchMercurial.cc
  26. +12 −7 src/libexpr/primops/fetchTree.cc
  27. +14 −11 src/libexpr/value-to-json.cc
  28. +19 −14 src/libexpr/value-to-xml.cc
  29. +187 −57 src/libexpr/value.hh
  30. +2 −2 src/libfetchers/attrs.cc
  31. +40 −9 src/libfetchers/git.cc
  32. +2 −2 src/libfetchers/github.cc
  33. +1 −1 src/libfetchers/mercurial.cc
  34. +1 −1 src/libfetchers/tarball.cc
  35. +0 −4 src/libmain/loggers.cc
  36. +0 −1 src/libmain/loggers.hh
  37. +555 −177 src/libmain/progress-bar.cc
  38. +9 −3 src/libmain/progress-bar.hh
  39. +1 −1 src/libstore/binary-cache-store.hh
  40. +20 −3 src/libstore/build/derivation-goal.cc
  41. +5 −0 src/libstore/build/derivation-goal.hh
  42. +12 −0 src/libstore/build/substitution-goal.cc
  43. +3 −0 src/libstore/build/substitution-goal.hh
  44. +20 −3 src/libstore/build/worker.cc
  45. +1 −7 src/libstore/build/worker.hh
  46. +2 −1 src/libstore/dummy-store.cc
  47. +8 −1 src/libstore/fs-accessor.hh
  48. +4 −1 src/libstore/http-binary-cache-store.cc
  49. +2 −1 src/libstore/legacy-ssh-store.cc
  50. +4 −1 src/libstore/local-binary-cache-store.cc
  51. +4 −4 src/libstore/local-fs-store.cc
  52. +1 −1 src/libstore/local-fs-store.hh
  53. +39 −32 src/libstore/local-store.cc
  54. +3 −1 src/libstore/local-store.hh
  55. +1 −1 src/libstore/misc.cc
  56. +1 −1 src/libstore/nar-accessor.cc
  57. +0 −3 src/libstore/references.cc
  58. +4 −4 src/libstore/remote-fs-accessor.cc
  59. +2 −2 src/libstore/remote-fs-accessor.hh
  60. +2 −2 src/libstore/remote-store.cc
  61. +1 −1 src/libstore/remote-store.hh
  62. +10 −1 src/libstore/s3-binary-cache-store.cc
  63. +2 −4 src/libstore/s3-binary-cache-store.hh
  64. +3 −1 src/libstore/ssh-store.cc
  65. +9 −12 src/libstore/store-api.cc
  66. +1 −19 src/libstore/store-api.hh
  67. +3 −0 src/libstore/uds-remote-store.cc
  68. +1 −6 src/libstore/uds-remote-store.hh
  69. +2 −32 src/libutil/args.cc
  70. +3 −17 src/libutil/args.hh
  71. +21 −29 src/libutil/error.cc
  72. +8 −0 src/libutil/logging.hh
  73. +3 −3 src/libutil/tests/logging.cc
  74. +8 −8 src/nix-env/nix-env.cc
  75. +4 −4 src/nix-env/user-env.cc
  76. +2 −1 src/nix-prefetch-url/nix-prefetch-url.cc
  77. +19 −18 src/nix/build.cc
  78. +92 −0 src/nix/build.md
  79. +4 −7 src/nix/bundle.cc
  80. +36 −0 src/nix/bundle.md
  81. +14 −0 src/nix/cat.cc
  82. +4 −25 src/nix/copy.cc
  83. +58 −0 src/nix/copy.md
  84. +8 −30 src/nix/develop.cc
  85. +94 −0 src/nix/develop.md
  86. +4 −7 src/nix/diff-closures.cc
  87. +51 −0 src/nix/diff-closures.md
  88. +8 −14 src/nix/dump-path.cc
  89. +4 −7 src/nix/edit.cc
  90. +31 −0 src/nix/edit.md
  91. +6 −25 src/nix/eval.cc
  92. +74 −0 src/nix/eval.md
  93. +29 −0 src/nix/flake-archive.md
  94. +68 −0 src/nix/flake-check.md
  95. +18 −0 src/nix/flake-clone.md
  96. +99 −0 src/nix/flake-info.md
  97. +54 −0 src/nix/flake-init.md
  98. +23 −0 src/nix/flake-list-inputs.md
  99. +34 −0 src/nix/flake-new.md
  100. +38 −0 src/nix/flake-show.md
  101. +53 −0 src/nix/flake-update.md
  102. +70 −36 src/nix/flake.cc
  103. +566 −0 src/nix/flake.md
  104. +17 −0 src/nix/help.md
  105. +2 −0 src/nix/installables.cc
  106. +4 −15 src/nix/log.cc
  107. +40 −0 src/nix/log.md
  108. +12 −16 src/nix/ls.cc
  109. +19 −19 src/nix/main.cc
  110. +5 −12 src/nix/make-content-addressable.cc
  111. +59 −0 src/nix/make-content-addressable.md
  112. +19 −0 src/nix/nar-cat.md
  113. +17 −0 src/nix/nar-dump-path.md
  114. +24 −0 src/nix/nar-ls.md
  115. +8 −1 src/nix/nar.cc
  116. +13 −0 src/nix/nar.md
  117. +119 −0 src/nix/nix.md
  118. +4 −7 src/nix/optimise-store.cc
  119. +23 −0 src/nix/optimise-store.md
  120. +6 −29 src/nix/path-info.cc
  121. +94 −0 src/nix/path-info.md
  122. +5 −8 src/nix/ping-store.cc
  123. +30 −0 src/nix/ping-store.md
  124. +19 −0 src/nix/print-dev-env.md
  125. +28 −0 src/nix/profile-diff-closures.md
  126. +31 −0 src/nix/profile-info.md
  127. +27 −0 src/nix/profile-install.md
  128. +32 −0 src/nix/profile-remove.md
  129. +41 −0 src/nix/profile-upgrade.md
  130. +29 −61 src/nix/profile.cc
  131. +107 −0 src/nix/profile.md
  132. +33 −0 src/nix/registry-add.md
  133. +29 −0 src/nix/registry-list.md
  134. +38 −0 src/nix/registry-pin.md
  135. +16 −0 src/nix/registry-remove.md
  136. +35 −0 src/nix/registry.cc
  137. +98 −0 src/nix/registry.md
  138. +29 −36 src/nix/repl.cc
  139. +57 −0 src/nix/repl.md
  140. +16 −40 src/nix/run.cc
  141. +87 −0 src/nix/run.md
  142. +5 −20 src/nix/search.cc
  143. +72 −0 src/nix/search.md
  144. +48 −0 src/nix/shell.md
  145. +5 −12 src/nix/show-derivation.cc
  146. +103 −0 src/nix/show-derivation.md
  147. +19 −0 src/nix/store-cat.md
  148. +23 −0 src/nix/store-dump-path.md
  149. +27 −0 src/nix/store-ls.md
  150. +4 −11 src/nix/upgrade-nix.cc
  151. +28 −0 src/nix/upgrade-nix.md
  152. +7 −12 src/nix/verify.cc
  153. +49 −0 src/nix/verify.md
  154. +4 −15 src/nix/why-depends.cc
  155. +80 −0 src/nix/why-depends.md
  156. +13 −0 tests/fetchGit.sh
  157. +7 −7 tests/fetchurl.sh
  158. +2 −3 tests/lang/eval-okay-search-path.nix
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@ makefiles = \
src/nix/local.mk \
src/resolve-system-dependencies/local.mk \
scripts/local.mk \
corepkgs/local.mk \
misc/bash/local.mk \
misc/systemd/local.mk \
misc/launchd/local.mk \
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ Information on additional installation methods is available on the [Nix download

## Building And Developing

See our [Hacking guide](https://hydra.nixos.org/job/nix/master/build.x86_64-linux/latest/download-by-type/doc/manual/hacking.html) in our manual for instruction on how to
See our [Hacking guide](https://hydra.nixos.org/job/nix/master/build.x86_64-linux/latest/download-by-type/doc/manual/contributing/hacking.html) in our manual for instruction on how to
build nix from source with nix-build or how to get a development environment.

## Additional Resources
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -174,9 +174,9 @@ PKG_CHECK_MODULES([OPENSSL], [libcrypto], [CXXFLAGS="$OPENSSL_CFLAGS $CXXFLAGS"]

# Look for libbz2, a required dependency.
AC_CHECK_LIB([bz2], [BZ2_bzWriteOpen], [true],
[AC_MSG_ERROR([Nix requires libbz2, which is part of bzip2. See https://web.archive.org/web/20180624184756/http://www.bzip.org/.])])
[AC_MSG_ERROR([Nix requires libbz2, which is part of bzip2. See https://sourceware.org/bzip2/.])])
AC_CHECK_HEADERS([bzlib.h], [true],
[AC_MSG_ERROR([Nix requires libbz2, which is part of bzip2. See https://web.archive.org/web/20180624184756/http://www.bzip.org/.])])
[AC_MSG_ERROR([Nix requires libbz2, which is part of bzip2. See https://sourceware.org/bzip2/.])])
# Checks for libarchive
PKG_CHECK_MODULES([LIBARCHIVE], [libarchive >= 3.1.2], [CXXFLAGS="$LIBARCHIVE_CFLAGS $CXXFLAGS"])
# Workaround until https://github.com/libarchive/libarchive/issues/1446 is fixed
4 changes: 0 additions & 4 deletions corepkgs/local.mk

This file was deleted.

7 changes: 1 addition & 6 deletions doc/manual/generate-manpage.nix
Original file line number Diff line number Diff line change
@@ -20,11 +20,6 @@ let
(attrNames def.commands))
+ "\n"
else "")
+ (if def.examples or [] != []
then
"# Examples\n\n"
+ concatStrings (map ({ description, command }: "${description}\n\n```console\n${command}\n```\n\n") def.examples)
else "")
+ (if def ? doc
then def.doc + "\n\n"
else "")
@@ -43,7 +38,7 @@ let
if flag.category or "" != "config"
then
" - `--${longName}`"
+ (if flag ? shortName then " / `${flag.shortName}`" else "")
+ (if flag ? shortName then " / `-${flag.shortName}`" else "")
+ (if flag ? labels then " " + (concatStringsSep " " (map (s: "*${s}*") flag.labels)) else "")
+ " \n"
+ " " + flag.description + "\n\n"
4 changes: 3 additions & 1 deletion doc/manual/src/SUMMARY.md.in
Original file line number Diff line number Diff line change
@@ -66,7 +66,9 @@
- [Files](command-ref/files.md)
- [nix.conf](command-ref/conf-file.md)
- [Glossary](glossary.md)
- [Hacking](hacking.md)
- [Contributing](contributing/contributing.md)
- [Hacking](contributing/hacking.md)
- [CLI guideline](contributing/cli-guideline.md)
- [Release Notes](release-notes/release-notes.md)
- [Release 2.3 (2019-09-04)](release-notes/rl-2.3.md)
- [Release 2.2 (2019-01-11)](release-notes/rl-2.2.md)
Loading