Compare commits
103
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84e2963f8e | ||
|
|
4db9487823 | ||
|
|
d4b9977f83 | ||
|
|
08b59aad31 | ||
|
|
8b2ffbae3a | ||
|
|
67a66212c3 | ||
|
|
6594573f3d | ||
|
|
0db8ff820b | ||
|
|
f7db612e8b | ||
|
|
57a478572d | ||
|
|
c8d49993ec | ||
|
|
06255654a7 | ||
|
|
b5c88650c5 | ||
|
|
26c3fc11ea | ||
|
|
011fa9e085 | ||
|
|
4dc7946acd | ||
|
|
0dc8419c11 | ||
|
|
c88e901096 | ||
|
|
5e5c97962c | ||
|
|
15e5684884 | ||
|
|
4e8a9e0ed4 | ||
|
|
94f649fad5 | ||
|
|
a6b121ce2d | ||
|
|
071ddbed57 | ||
|
|
f5a2f2a8f8 | ||
|
|
96ba7f9d77 | ||
|
|
b6656160ba | ||
|
|
3e7b42dd89 | ||
|
|
96c326a7bf | ||
|
|
417d5565b1 | ||
|
|
dc89eab7f4 | ||
|
|
b7b9acd080 | ||
|
|
348cca088c | ||
|
|
d2f627dda9 | ||
|
|
5cf6b2cb75 | ||
|
|
c7db10000c | ||
|
|
14f029dbe8 | ||
|
|
f8268cbe16 | ||
|
|
5150a962f5 | ||
|
|
1f024ecfcd | ||
|
|
c116030605 | ||
|
|
4e31360637 | ||
|
|
3df619339c | ||
|
|
a1415471b8 | ||
|
|
973d4ede84 | ||
|
|
a614fbb2a2 | ||
|
|
79138183a9 | ||
|
|
8c4842de8c | ||
|
|
3b6cf350e7 | ||
|
|
410853ddcf | ||
|
|
c1ecf0bee9 | ||
|
|
08deebddf2 | ||
|
|
f8bd7e7e5c | ||
|
|
3b0c5ab835 | ||
|
|
aee34e4776 | ||
|
|
4566854981 | ||
|
|
0ed67e5b7e | ||
|
|
1271a95b79 | ||
|
|
12d5b2cfa1 | ||
|
|
a5959aa121 | ||
|
|
4dc4e81b1e | ||
|
|
ef8987955b | ||
|
|
062b4a489e | ||
|
|
7b39cd631e | ||
|
|
6c37d81514 | ||
|
|
eb3a368a33 | ||
|
|
f2f47fa725 | ||
|
|
322d2c767f | ||
|
|
2b6b03d8df | ||
|
|
c04bc17a5a | ||
|
|
da332d678e | ||
|
|
d0c351bf43 | ||
|
|
68ba6ff470 | ||
|
|
ec47133be3 | ||
|
|
088569463b | ||
|
|
c5c68558b5 | ||
|
|
b2bb92ef09 | ||
|
|
2f4a7a8301 | ||
|
|
589d8f1f2b | ||
|
|
31d408c351 | ||
|
|
b9f78abb7f | ||
|
|
ca3fc1693b | ||
|
|
4449b0da74 | ||
|
|
0c2fdd2f3c | ||
|
|
9ea29ea517 | ||
|
|
cd5fc45524 | ||
|
|
e60b90192a | ||
|
|
a45a7e8011 | ||
|
|
97fffd8765 | ||
|
|
3df1658ba1 | ||
|
|
56b8911766 | ||
|
|
c75907e47b | ||
|
|
5c87c40a5e | ||
|
|
59acf3b75c | ||
|
|
96ee5450d9 | ||
|
|
0f5c37c242 | ||
|
|
04a47e93f6 | ||
|
|
a673084733 | ||
|
|
d772a8b3dc | ||
|
|
f0a4f19087 | ||
|
|
8690b6f138 | ||
|
|
0624cf0f59 | ||
|
|
ee3f0b7a8b |
No files matched your search
+5
-5
@@ -11,16 +11,16 @@
|
||||
.github/CODEOWNERS @edolstra
|
||||
|
||||
# Documentation of built-in functions
|
||||
src/libexpr/primops.cc @roberth @fricklerhandwerk
|
||||
subprojects/libexpr/primops.cc @roberth @fricklerhandwerk
|
||||
|
||||
# Documentation of settings
|
||||
src/libexpr/eval-settings.hh @fricklerhandwerk
|
||||
src/libstore/globals.hh @fricklerhandwerk
|
||||
subprojects/libexpr/eval-settings.hh @fricklerhandwerk
|
||||
subprojects/libstore/globals.hh @fricklerhandwerk
|
||||
|
||||
# Documentation
|
||||
doc/manual @fricklerhandwerk
|
||||
maintainers/*.md @fricklerhandwerk
|
||||
src/**/*.md @fricklerhandwerk
|
||||
subprojects/**/*.md @fricklerhandwerk
|
||||
|
||||
# Libstore layer
|
||||
/src/libstore @ericson2314
|
||||
/subprojects/libstore @ericson2314
|
||||
+9
-9
@@ -1,6 +1,6 @@
|
||||
"c api":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: "src/lib*-c/**/*"
|
||||
- any-glob-to-any-file: "subprojects/lib*-c/**/*"
|
||||
- any-glob-to-any-file: "test/unit/**/nix_api_*"
|
||||
- any-glob-to-any-file: "doc/external-api/**/*"
|
||||
|
||||
@@ -14,30 +14,30 @@
|
||||
"documentation":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: "doc/manual/**/*"
|
||||
- any-glob-to-any-file: "src/nix/**/*.md"
|
||||
- any-glob-to-any-file: "subprojects/nix/**/*.md"
|
||||
|
||||
"store":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: "src/libstore/store-api.*"
|
||||
- any-glob-to-any-file: "src/libstore/*-store.*"
|
||||
- any-glob-to-any-file: "subprojects/libstore/store-api.*"
|
||||
- any-glob-to-any-file: "subprojects/libstore/*-store.*"
|
||||
|
||||
"fetching":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: "src/libfetchers/**/*"
|
||||
- any-glob-to-any-file: "subprojects/libfetchers/**/*"
|
||||
|
||||
"repl":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: "src/libcmd/repl.*"
|
||||
- any-glob-to-any-file: "src/nix/repl.*"
|
||||
- any-glob-to-any-file: "subprojects/libcmd/repl.*"
|
||||
- any-glob-to-any-file: "subprojects/nix/repl.*"
|
||||
|
||||
"new-cli":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: "src/nix/**/*"
|
||||
- any-glob-to-any-file: "subprojects/nix/**/*"
|
||||
|
||||
"with-tests":
|
||||
- changed-files:
|
||||
# Unit tests
|
||||
- any-glob-to-any-file: "src/*/tests/**/*"
|
||||
- any-glob-to-any-file: "subprojects/*/tests/**/*"
|
||||
# Functional and integration tests
|
||||
- any-glob-to-any-file: "tests/functional/**/*"
|
||||
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: cachix/install-nix-action@V28
|
||||
- uses: cachix/install-nix-action@v30
|
||||
with:
|
||||
# The sandbox would otherwise be disabled by default on Darwin
|
||||
extra_nix_config: "sandbox = true"
|
||||
@@ -89,7 +89,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV
|
||||
- uses: cachix/install-nix-action@V28
|
||||
- uses: cachix/install-nix-action@v30
|
||||
with:
|
||||
install_url: https://releases.nixos.org/nix/nix-2.20.3/install
|
||||
- uses: cachix/cachix-action@v15
|
||||
@@ -112,7 +112,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV
|
||||
- uses: cachix/install-nix-action@V28
|
||||
- uses: cachix/install-nix-action@v30
|
||||
with:
|
||||
install_url: '${{needs.installer.outputs.installerURL}}'
|
||||
install_options: "--tarball-url-prefix https://${{ env.CACHIX_NAME }}.cachix.org/serve"
|
||||
@@ -142,7 +142,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: cachix/install-nix-action@V28
|
||||
- uses: cachix/install-nix-action@v30
|
||||
with:
|
||||
install_url: https://releases.nixos.org/nix/nix-2.20.3/install
|
||||
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV
|
||||
|
||||
+31
-31
@@ -41,59 +41,59 @@ perl/Makefile.config
|
||||
/scripts/nix-profile.fish
|
||||
/scripts/nix-profile-daemon.fish
|
||||
|
||||
# /src/libexpr/
|
||||
/src/libexpr/lexer-tab.cc
|
||||
/src/libexpr/lexer-tab.hh
|
||||
/src/libexpr/parser-tab.cc
|
||||
/src/libexpr/parser-tab.hh
|
||||
/src/libexpr/parser-tab.output
|
||||
/src/libexpr/nix.tbl
|
||||
/src/libexpr/tests
|
||||
# /subprojects/libexpr/
|
||||
/subprojects/libexpr/lexer-tab.cc
|
||||
/subprojects/libexpr/lexer-tab.hh
|
||||
/subprojects/libexpr/parser-tab.cc
|
||||
/subprojects/libexpr/parser-tab.hh
|
||||
/subprojects/libexpr/parser-tab.output
|
||||
/subprojects/libexpr/nix.tbl
|
||||
/subprojects/libexpr/tests
|
||||
/tests/unit/libexpr/libnixexpr-tests
|
||||
|
||||
# /src/libfetchers
|
||||
# /subprojects/libfetchers
|
||||
/tests/unit/libfetchers/libnixfetchers-tests
|
||||
|
||||
# /src/libflake
|
||||
# /subprojects/libflake
|
||||
/tests/unit/libflake/libnixflake-tests
|
||||
|
||||
# /src/libstore/
|
||||
# /subprojects/libstore/
|
||||
*.gen.*
|
||||
/src/libstore/tests
|
||||
/subprojects/libstore/tests
|
||||
/tests/unit/libstore/libnixstore-tests
|
||||
|
||||
# /src/libutil/
|
||||
/src/libutil/tests
|
||||
# /subprojects/libutil/
|
||||
/subprojects/libutil/tests
|
||||
/tests/unit/libutil/libnixutil-tests
|
||||
|
||||
/src/nix/nix
|
||||
/subprojects/nix/nix
|
||||
|
||||
/src/nix/generated-doc
|
||||
/subprojects/nix/generated-doc
|
||||
|
||||
# /src/nix-env/
|
||||
/src/nix-env/nix-env
|
||||
# /subprojects/nix-env/
|
||||
/subprojects/nix-env/nix-env
|
||||
|
||||
# /src/nix-instantiate/
|
||||
/src/nix-instantiate/nix-instantiate
|
||||
# /subprojects/nix-instantiate/
|
||||
/subprojects/nix-instantiate/nix-instantiate
|
||||
|
||||
# /src/nix-store/
|
||||
/src/nix-store/nix-store
|
||||
# /subprojects/nix-store/
|
||||
/subprojects/nix-store/nix-store
|
||||
|
||||
/src/nix-prefetch-url/nix-prefetch-url
|
||||
/subprojects/nix-prefetch-url/nix-prefetch-url
|
||||
|
||||
/src/nix-collect-garbage/nix-collect-garbage
|
||||
/subprojects/nix-collect-garbage/nix-collect-garbage
|
||||
|
||||
# /src/nix-channel/
|
||||
/src/nix-channel/nix-channel
|
||||
# /subprojects/nix-channel/
|
||||
/subprojects/nix-channel/nix-channel
|
||||
|
||||
# /src/nix-build/
|
||||
/src/nix-build/nix-build
|
||||
# /subprojects/nix-build/
|
||||
/subprojects/nix-build/nix-build
|
||||
|
||||
/src/nix-copy-closure/nix-copy-closure
|
||||
/subprojects/nix-copy-closure/nix-copy-closure
|
||||
|
||||
/src/error-demo/error-demo
|
||||
/subprojects/error-demo/error-demo
|
||||
|
||||
/src/build-remote/build-remote
|
||||
/subprojects/build-remote/build-remote
|
||||
|
||||
# /tests/functional/
|
||||
/tests/functional/test-tmp
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ queue_rules:
|
||||
pull_request_rules:
|
||||
- name: merge using the merge queue
|
||||
conditions:
|
||||
- base=master
|
||||
- base~=master|.+-maintenance
|
||||
- label~=merge-queue|dependencies
|
||||
actions:
|
||||
queue: {}
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@ Check out the [security policy](https://github.com/NixOS/nix/security/policy).
|
||||
- [ ] Fixes an [idea approved](https://github.com/NixOS/nix/labels/idea%20approved) issue
|
||||
- [ ] Tests, as appropriate:
|
||||
- Functional tests – [`tests/functional/**.sh`](./tests/functional)
|
||||
- Unit tests – [`src/*/tests`](./src/)
|
||||
- Unit tests – [`tests/unit/*`](./tests/unit)
|
||||
- Integration tests – [`tests/nixos/*`](./tests/nixos)
|
||||
- [ ] User documentation in the [manual](./doc/manual/src)
|
||||
- [ ] API documentation in header files
|
||||
|
||||
@@ -13,17 +13,17 @@ ifeq ($(ENABLE_BUILD), yes)
|
||||
makefiles = \
|
||||
mk/precompiled-headers.mk \
|
||||
local.mk \
|
||||
src/libutil/local.mk \
|
||||
src/libstore/local.mk \
|
||||
src/libfetchers/local.mk \
|
||||
src/libmain/local.mk \
|
||||
src/libexpr/local.mk \
|
||||
src/libflake/local.mk \
|
||||
src/libcmd/local.mk \
|
||||
src/nix/local.mk \
|
||||
src/libutil-c/local.mk \
|
||||
src/libstore-c/local.mk \
|
||||
src/libexpr-c/local.mk
|
||||
subprojects/libutil/local.mk \
|
||||
subprojects/libstore/local.mk \
|
||||
subprojects/libfetchers/local.mk \
|
||||
subprojects/libmain/local.mk \
|
||||
subprojects/libexpr/local.mk \
|
||||
subprojects/libflake/local.mk \
|
||||
subprojects/libcmd/local.mk \
|
||||
subprojects/nix/local.mk \
|
||||
subprojects/libutil-c/local.mk \
|
||||
subprojects/libstore-c/local.mk \
|
||||
subprojects/libexpr-c/local.mk
|
||||
|
||||
ifdef HOST_UNIX
|
||||
makefiles += \
|
||||
@@ -93,7 +93,7 @@ ifdef HOST_WINDOWS
|
||||
GLOBAL_LDFLAGS += -Wl,--export-all-symbols
|
||||
endif
|
||||
|
||||
GLOBAL_CXXFLAGS += -g -Wall -Wdeprecated-copy -Wignored-qualifiers -Wimplicit-fallthrough -Werror=unused-result -Werror=suggest-override -include $(buildprefix)config.h -std=c++2a -I src
|
||||
GLOBAL_CXXFLAGS += -g -Wall -Wdeprecated-copy -Wignored-qualifiers -Wimplicit-fallthrough -Werror=unused-result -Werror=suggest-override -include $(buildprefix)config.h -std=c++2a -I subprojects
|
||||
|
||||
# Include the main lib, causing rules to be defined
|
||||
|
||||
@@ -101,7 +101,7 @@ include mk/lib.mk
|
||||
|
||||
# Fallback stub rules for better UX when things are disabled
|
||||
#
|
||||
# These must be defined after `mk/lib.mk`. Otherwise the first rule
|
||||
# These must be defined after Otherwise the first rule
|
||||
# incorrectly becomes the default target.
|
||||
|
||||
ifneq ($(ENABLE_UNIT_TESTS), yes)
|
||||
|
||||
+1
-1
@@ -86,7 +86,7 @@ static char buf[1024];]],
|
||||
AC_LANG_POP(C++)
|
||||
|
||||
|
||||
AC_CHECK_FUNCS([statvfs pipe2])
|
||||
AC_CHECK_FUNCS([statvfs pipe2 close_range])
|
||||
|
||||
|
||||
# Check for lutimes, optionally used for changing the mtime of
|
||||
|
||||
File renamed without changes.
+13
-1
@@ -7,9 +7,21 @@ additional-js = ["redirects.js"]
|
||||
edit-url-template = "https://github.com/NixOS/nix/tree/master/doc/manual/{path}"
|
||||
git-repository-url = "https://github.com/NixOS/nix"
|
||||
|
||||
# Handles replacing @docroot@ with a path to ./src relative to that markdown file,
|
||||
# {{#include handlebars}}, and the @generated@ syntax used within these. it mostly
|
||||
# but not entirely replaces the links preprocessor (which we cannot simply use due
|
||||
# to @generated@ files living in a different directory to make meson happy). we do
|
||||
# not want to disable the links preprocessor entirely though because that requires
|
||||
# disabling *all* built-in preprocessors and selectively reenabling those we want.
|
||||
[preprocessor.substitute]
|
||||
command = "python3 ./substitute.py"
|
||||
before = ["anchors", "links"]
|
||||
|
||||
[preprocessor.anchors]
|
||||
renderers = ["html"]
|
||||
command = "jq --from-file doc/manual/anchors.jq"
|
||||
command = "jq --from-file ./anchors.jq"
|
||||
|
||||
[output.markdown]
|
||||
|
||||
[output.linkcheck]
|
||||
# no Internet during the build (in the sandbox)
|
||||
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import glob
|
||||
import sys
|
||||
|
||||
# meson expects makefile-style dependency declarations, i.e.
|
||||
#
|
||||
# target: dependency...
|
||||
#
|
||||
# meson seems to pass depfiles straight on to ninja even though
|
||||
# it also parses the file itself (or at least has code to do so
|
||||
# in its tree), so we must live by ninja's rules: only slashes,
|
||||
# spaces and octothorpes can be escaped, anything else is taken
|
||||
# literally. since the rules for these aren't even the same for
|
||||
# all three we will just fail when we encounter any of them (if
|
||||
# asserts are off for some reason the depfile will likely point
|
||||
# to nonexistant paths, making everything phony and thus fine.)
|
||||
for path in glob.glob(sys.argv[1] + '/**', recursive=True):
|
||||
assert '\\' not in path
|
||||
assert ' ' not in path
|
||||
assert '#' not in path
|
||||
print("ignored:", path)
|
||||
+7
-2
@@ -223,8 +223,13 @@ $(docdir)/manual/index.html: $(MANUAL_SRCS) $(d)/book.toml $(d)/anchors.jq $(d)/
|
||||
sed -i "s,@docroot@,$$docroot,g" "$$file"; \
|
||||
done; \
|
||||
set -euo pipefail; \
|
||||
RUST_LOG=warn mdbook build "$$tmp/manual" -d $(DESTDIR)$(docdir)/manual.tmp 2>&1 \
|
||||
| { grep -Fv "because fragment resolution isn't implemented" || :; }; \
|
||||
( \
|
||||
cd "$$tmp/manual"; \
|
||||
RUST_LOG=warn \
|
||||
MDBOOK_SUBSTITUTE_SEARCH=$(d)/src \
|
||||
mdbook build -d $(DESTDIR)$(docdir)/manual.tmp 2>&1 \
|
||||
| { grep -Fv "because fragment resolution isn't implemented" || :; } \
|
||||
); \
|
||||
rm -rf "$$tmp/manual"
|
||||
@rm -rf $(DESTDIR)$(docdir)/manual
|
||||
@mv $(DESTDIR)$(docdir)/manual.tmp/html $(DESTDIR)$(docdir)/manual
|
||||
|
||||
@@ -0,0 +1,353 @@
|
||||
project('nix-manual',
|
||||
version : files('.version'),
|
||||
meson_version : '>= 1.1',
|
||||
license : 'LGPL-2.1-or-later',
|
||||
)
|
||||
|
||||
nix = find_program('nix', native : true)
|
||||
|
||||
mdbook = find_program('mdbook', native : true)
|
||||
bash = find_program('bash', native : true)
|
||||
|
||||
pymod = import('python')
|
||||
python = pymod.find_installation('python3')
|
||||
|
||||
nix_env_for_docs = {
|
||||
'HOME': '/dummy',
|
||||
'NIX_CONF_DIR': '/dummy',
|
||||
'NIX_SSL_CERT_FILE': '/dummy/no-ca-bundle.crt',
|
||||
'NIX_STATE_DIR': '/dummy',
|
||||
'NIX_CONFIG': 'cores = 0',
|
||||
}
|
||||
|
||||
nix_for_docs = [nix, '--experimental-features', 'nix-command']
|
||||
nix_eval_for_docs_common = nix_for_docs + [
|
||||
'eval',
|
||||
'-I', 'nix=' + meson.current_source_dir(),
|
||||
'--store', 'dummy://',
|
||||
'--impure',
|
||||
]
|
||||
nix_eval_for_docs = nix_eval_for_docs_common + '--raw'
|
||||
|
||||
conf_file_json = custom_target(
|
||||
command : nix_for_docs + ['config', 'show', '--json'],
|
||||
capture : true,
|
||||
output : 'conf-file.json',
|
||||
env : nix_env_for_docs,
|
||||
)
|
||||
|
||||
language_json = custom_target(
|
||||
command: [nix, '__dump-language'],
|
||||
output : 'language.json',
|
||||
capture : true,
|
||||
env : nix_env_for_docs,
|
||||
)
|
||||
|
||||
nix3_cli_json = custom_target(
|
||||
command : [nix, '__dump-cli'],
|
||||
capture : true,
|
||||
output : 'nix.json',
|
||||
env : nix_env_for_docs,
|
||||
)
|
||||
|
||||
generate_manual_deps = files(
|
||||
'generate-deps.py',
|
||||
)
|
||||
|
||||
# Generates types
|
||||
subdir('src/store')
|
||||
# Generates builtins.md and builtin-constants.md.
|
||||
subdir('src/language')
|
||||
# Generates new-cli pages, experimental-features-shortlist.md, and conf-file.md.
|
||||
subdir('src/command-ref')
|
||||
# Generates experimental-feature-descriptions.md.
|
||||
subdir('src/development')
|
||||
# Generates rl-next-generated.md.
|
||||
subdir('src/release-notes')
|
||||
subdir('src')
|
||||
|
||||
# Hacky way to figure out if `nix` is an `ExternalProgram` or
|
||||
# `Exectuable`. Only the latter can occur in custom target input lists.
|
||||
if nix.full_path().startswith(meson.build_root())
|
||||
nix_input = nix
|
||||
else
|
||||
nix_input = []
|
||||
endif
|
||||
|
||||
manual = custom_target(
|
||||
'manual',
|
||||
command : [
|
||||
bash,
|
||||
'-euo', 'pipefail',
|
||||
'-c',
|
||||
'''
|
||||
@0@ @INPUT0@ @CURRENT_SOURCE_DIR@ > @DEPFILE@
|
||||
@0@ @INPUT1@ summary @2@ < @CURRENT_SOURCE_DIR@/src/SUMMARY.md.in > @2@/src/SUMMARY.md
|
||||
rsync -r --include='*.md' @CURRENT_SOURCE_DIR@/ @2@/
|
||||
(cd @2@; RUST_LOG=warn @1@ build -d @2@ 3>&2 2>&1 1>&3) | { grep -Fv "because fragment resolution isn't implemented" || :; } 3>&2 2>&1 1>&3
|
||||
rm -rf @2@/manual
|
||||
mv @2@/html @2@/manual
|
||||
find @2@/manual -iname meson.build -delete
|
||||
'''.format(
|
||||
python.full_path(),
|
||||
mdbook.full_path(),
|
||||
meson.current_build_dir(),
|
||||
),
|
||||
],
|
||||
input : [
|
||||
generate_manual_deps,
|
||||
'substitute.py',
|
||||
'book.toml',
|
||||
'anchors.jq',
|
||||
'custom.css',
|
||||
nix3_cli_files,
|
||||
experimental_features_shortlist_md,
|
||||
experimental_feature_descriptions_md,
|
||||
types_dir,
|
||||
conf_file_md,
|
||||
builtins_md,
|
||||
rl_next_generated,
|
||||
summary_rl_next,
|
||||
nix_input,
|
||||
],
|
||||
output : [
|
||||
'manual',
|
||||
'markdown',
|
||||
],
|
||||
depfile : 'manual.d',
|
||||
env : {
|
||||
'RUST_LOG': 'info',
|
||||
'MDBOOK_SUBSTITUTE_SEARCH': meson.current_build_dir() / 'src',
|
||||
},
|
||||
)
|
||||
manual_html = manual[0]
|
||||
manual_md = manual[1]
|
||||
|
||||
install_subdir(
|
||||
manual_html.full_path(),
|
||||
install_dir : get_option('datadir') / 'doc/nix',
|
||||
)
|
||||
|
||||
nix_nested_manpages = [
|
||||
[ 'nix-env',
|
||||
[
|
||||
'delete-generations',
|
||||
'install',
|
||||
'list-generations',
|
||||
'query',
|
||||
'rollback',
|
||||
'set-flag',
|
||||
'set',
|
||||
'switch-generation',
|
||||
'switch-profile',
|
||||
'uninstall',
|
||||
'upgrade',
|
||||
],
|
||||
],
|
||||
[ 'nix-store',
|
||||
[
|
||||
'add-fixed',
|
||||
'add',
|
||||
'delete',
|
||||
'dump-db',
|
||||
'dump',
|
||||
'export',
|
||||
'gc',
|
||||
'generate-binary-cache-key',
|
||||
'import',
|
||||
'load-db',
|
||||
'optimise',
|
||||
'print-env',
|
||||
'query',
|
||||
'read-log',
|
||||
'realise',
|
||||
'repair-path',
|
||||
'restore',
|
||||
'serve',
|
||||
'verify',
|
||||
'verify-path',
|
||||
],
|
||||
],
|
||||
]
|
||||
|
||||
foreach command : nix_nested_manpages
|
||||
foreach page : command[1]
|
||||
title = command[0] + ' --' + page
|
||||
section = '1'
|
||||
custom_target(
|
||||
command : [
|
||||
bash,
|
||||
files('./render-manpage.sh'),
|
||||
'--out-no-smarty',
|
||||
title,
|
||||
section,
|
||||
'@INPUT0@/command-ref' / command[0] / (page + '.md'),
|
||||
'@OUTPUT0@',
|
||||
],
|
||||
input : [
|
||||
manual_md,
|
||||
nix_input,
|
||||
],
|
||||
output : command[0] + '-' + page + '.1',
|
||||
install : true,
|
||||
install_dir : get_option('mandir') / 'man1',
|
||||
)
|
||||
endforeach
|
||||
endforeach
|
||||
|
||||
nix3_manpages = [
|
||||
'nix3-build',
|
||||
'nix3-bundle',
|
||||
'nix3-config',
|
||||
'nix3-config-show',
|
||||
'nix3-copy',
|
||||
'nix3-daemon',
|
||||
'nix3-derivation-add',
|
||||
'nix3-derivation',
|
||||
'nix3-derivation-show',
|
||||
'nix3-develop',
|
||||
#'nix3-doctor',
|
||||
'nix3-edit',
|
||||
'nix3-eval',
|
||||
'nix3-flake-archive',
|
||||
'nix3-flake-check',
|
||||
'nix3-flake-clone',
|
||||
'nix3-flake-info',
|
||||
'nix3-flake-init',
|
||||
'nix3-flake-lock',
|
||||
'nix3-flake',
|
||||
'nix3-flake-metadata',
|
||||
'nix3-flake-new',
|
||||
'nix3-flake-prefetch',
|
||||
'nix3-flake-show',
|
||||
'nix3-flake-update',
|
||||
'nix3-fmt',
|
||||
'nix3-hash-file',
|
||||
'nix3-hash',
|
||||
'nix3-hash-path',
|
||||
'nix3-hash-to-base16',
|
||||
'nix3-hash-to-base32',
|
||||
'nix3-hash-to-base64',
|
||||
'nix3-hash-to-sri',
|
||||
'nix3-help',
|
||||
'nix3-help-stores',
|
||||
'nix3-key-convert-secret-to-public',
|
||||
'nix3-key-generate-secret',
|
||||
'nix3-key',
|
||||
'nix3-log',
|
||||
'nix3-nar-cat',
|
||||
'nix3-nar-dump-path',
|
||||
'nix3-nar-ls',
|
||||
'nix3-nar',
|
||||
'nix3-path-info',
|
||||
'nix3-print-dev-env',
|
||||
'nix3-profile-diff-closures',
|
||||
'nix3-profile-history',
|
||||
'nix3-profile-install',
|
||||
'nix3-profile-list',
|
||||
'nix3-profile',
|
||||
'nix3-profile-remove',
|
||||
'nix3-profile-rollback',
|
||||
'nix3-profile-upgrade',
|
||||
'nix3-profile-wipe-history',
|
||||
'nix3-realisation-info',
|
||||
'nix3-realisation',
|
||||
'nix3-registry-add',
|
||||
'nix3-registry-list',
|
||||
'nix3-registry',
|
||||
'nix3-registry-pin',
|
||||
'nix3-registry-remove',
|
||||
'nix3-repl',
|
||||
'nix3-run',
|
||||
'nix3-search',
|
||||
#'nix3-shell',
|
||||
'nix3-store-add-file',
|
||||
'nix3-store-add-path',
|
||||
'nix3-store-cat',
|
||||
'nix3-store-copy-log',
|
||||
'nix3-store-copy-sigs',
|
||||
'nix3-store-delete',
|
||||
'nix3-store-diff-closures',
|
||||
'nix3-store-dump-path',
|
||||
'nix3-store-gc',
|
||||
'nix3-store-ls',
|
||||
'nix3-store-make-content-addressed',
|
||||
'nix3-store',
|
||||
'nix3-store-optimise',
|
||||
'nix3-store-path-from-hash-part',
|
||||
'nix3-store-ping',
|
||||
'nix3-store-prefetch-file',
|
||||
'nix3-store-repair',
|
||||
'nix3-store-sign',
|
||||
'nix3-store-verify',
|
||||
'nix3-upgrade-nix',
|
||||
'nix3-why-depends',
|
||||
'nix',
|
||||
]
|
||||
|
||||
foreach page : nix3_manpages
|
||||
section = '1'
|
||||
custom_target(
|
||||
command : [
|
||||
bash,
|
||||
'@INPUT0@',
|
||||
page,
|
||||
section,
|
||||
'@INPUT1@/command-ref/new-cli/@0@.md'.format(page),
|
||||
'@OUTPUT@',
|
||||
],
|
||||
input : [
|
||||
files('./render-manpage.sh'),
|
||||
manual_md,
|
||||
nix_input,
|
||||
],
|
||||
output : page + '.1',
|
||||
install : true,
|
||||
install_dir : get_option('mandir') / 'man1',
|
||||
)
|
||||
endforeach
|
||||
|
||||
nix_manpages = [
|
||||
[ 'nix-env', 1 ],
|
||||
[ 'nix-store', 1 ],
|
||||
[ 'nix-build', 1 ],
|
||||
[ 'nix-shell', 1 ],
|
||||
[ 'nix-instantiate', 1 ],
|
||||
[ 'nix-collect-garbage', 1 ],
|
||||
[ 'nix-prefetch-url', 1 ],
|
||||
[ 'nix-channel', 1 ],
|
||||
[ 'nix-hash', 1 ],
|
||||
[ 'nix-copy-closure', 1 ],
|
||||
[ 'nix.conf', 5, conf_file_md.full_path() ],
|
||||
[ 'nix-daemon', 8 ],
|
||||
[ 'nix-profiles', 5, 'files/profiles.md' ],
|
||||
]
|
||||
|
||||
foreach entry : nix_manpages
|
||||
title = entry[0]
|
||||
# nix.conf.5 and nix-profiles.5 are based off of conf-file.md and files/profiles.md,
|
||||
# rather than a stem identical to its mdbook source.
|
||||
# Therefore we use an optional third element of this array to override the name pattern
|
||||
md_file = entry.get(2, title + '.md')
|
||||
section = entry[1].to_string()
|
||||
md_file_resolved = join_paths('@INPUT1@/command-ref/', md_file)
|
||||
custom_target(
|
||||
command : [
|
||||
bash,
|
||||
'@INPUT0@',
|
||||
title,
|
||||
section,
|
||||
md_file_resolved,
|
||||
'@OUTPUT@',
|
||||
],
|
||||
input : [
|
||||
files('./render-manpage.sh'),
|
||||
manual_md,
|
||||
entry.get(3, []),
|
||||
nix_input,
|
||||
],
|
||||
output : '@0@.@1@'.format(entry[0], entry[1]),
|
||||
install : true,
|
||||
install_dir : get_option('mandir') / 'man@0@'.format(entry[1]),
|
||||
)
|
||||
endforeach
|
||||
@@ -0,0 +1,71 @@
|
||||
{ lib
|
||||
, mkMesonDerivation
|
||||
|
||||
, meson
|
||||
, ninja
|
||||
, lowdown
|
||||
, mdbook
|
||||
, mdbook-linkcheck
|
||||
, jq
|
||||
, python3
|
||||
, rsync
|
||||
, nix-cli
|
||||
|
||||
# Configuration Options
|
||||
|
||||
, version
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (lib) fileset;
|
||||
in
|
||||
|
||||
mkMesonDerivation (finalAttrs: {
|
||||
pname = "nix-manual";
|
||||
inherit version;
|
||||
|
||||
workDir = ./.;
|
||||
fileset = fileset.difference
|
||||
(fileset.unions [
|
||||
../../.version
|
||||
# Too many different types of files to filter for now
|
||||
../../doc/manual
|
||||
./.
|
||||
])
|
||||
# Do a blacklist instead
|
||||
../../doc/manual/package.nix;
|
||||
|
||||
# TODO the man pages should probably be separate
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
# Hack for sake of the dev shell
|
||||
passthru.externalNativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
(lib.getBin lowdown)
|
||||
mdbook
|
||||
mdbook-linkcheck
|
||||
jq
|
||||
python3
|
||||
rsync
|
||||
];
|
||||
|
||||
nativeBuildInputs = finalAttrs.passthru.externalNativeBuildInputs ++ [
|
||||
nix-cli
|
||||
];
|
||||
|
||||
preConfigure =
|
||||
''
|
||||
chmod u+w ./.version
|
||||
echo ${finalAttrs.version} > ./.version
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p ''$out/nix-support
|
||||
echo "doc manual ''$out/share/doc/nix/manual" >> ''$out/nix-support/hydra-build-products
|
||||
'';
|
||||
|
||||
meta = {
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import shutil
|
||||
import typing as t
|
||||
|
||||
def main():
|
||||
if len(sys.argv) < 4 or '--' not in sys.argv:
|
||||
print("Usage: remove-before-wrapper <output> -- <nix command...>")
|
||||
sys.exit(1)
|
||||
|
||||
# Extract the parts
|
||||
output: str = sys.argv[1]
|
||||
nix_command_idx: int = sys.argv.index('--') + 1
|
||||
nix_command: t.List[str] = sys.argv[nix_command_idx:]
|
||||
|
||||
output_temp: str = output + '.tmp'
|
||||
|
||||
# Remove the output and temp output in case they exist
|
||||
shutil.rmtree(output, ignore_errors=True)
|
||||
shutil.rmtree(output_temp, ignore_errors=True)
|
||||
|
||||
# Execute nix command with `--write-to` tempary output
|
||||
nix_command_write_to = nix_command + ['--write-to', output_temp]
|
||||
subprocess.run(nix_command_write_to, check=True)
|
||||
|
||||
# Move the temporary output to the intended location
|
||||
os.rename(output_temp, output)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
lowdown_args=
|
||||
|
||||
if [ "$1" = --out-no-smarty ]; then
|
||||
lowdown_args=--out-no-smarty
|
||||
shift
|
||||
fi
|
||||
|
||||
[ "$#" = 4 ] || {
|
||||
echo "wrong number of args passed" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
title="$1"
|
||||
section="$2"
|
||||
infile="$3"
|
||||
outfile="$4"
|
||||
|
||||
(
|
||||
printf "Title: %s\n\n" "$title"
|
||||
cat "$infile"
|
||||
) | lowdown -sT man --nroff-nolinks $lowdown_args -M section="$section" -o "$outfile"
|
||||
@@ -16,7 +16,7 @@ This has a small adverse affect on remote building --- the `build-remote` execut
|
||||
This means that other applications linking `libnixstore` that wish to use remote building must arrange for the `nix` command to be on the PATH (or manually overriding `build-hook`) in order for that to work.
|
||||
|
||||
Long term we don't envision this being a downside, because we plan to [get rid of `build-remote` and the build hook setting entirely](https://github.com/NixOS/nix/issues/1221).
|
||||
There is simply no need to add a second layer of remote-procedure-calling when we want to connect to a remote builder.
|
||||
There should simply be no need to have an extra, intermediate layer of remote-procedure-calling when we want to connect to a remote builder.
|
||||
The build hook protocol did in principle support custom ways of remote building, but that can also be accomplished with a custom service for the ssh or daemon/ssh-ng protocols, or with a custom [store type](@docroot@/store/types/index.md) i.e. `Store` subclass. <!-- we normally don't mention classes, but consider that this release note is about a library use case -->
|
||||
|
||||
The Perl bindings no longer expose `getBinDir` either, since they libraries those bindings wrap no longer know the location of installed binaries as described above.
|
||||
The Perl bindings no longer expose `getBinDir` either, since the underlying C++ libraries those bindings wrap no longer know the location of installed binaries as described above.
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
synopsis: "`<nix/fetchurl.nix>` uses TLS verification"
|
||||
prs: [11585]
|
||||
---
|
||||
|
||||
Previously `<nix/fetchurl.nix>` did not do TLS verification. This was because the Nix sandbox in the past did not have access to TLS certificates, and Nix checks the hash of the fetched file anyway. However, this can expose authentication data from `netrc` and URLs to man-in-the-middle attackers. In addition, Nix now in some cases (such as when using impure derivations) does *not* check the hash. Therefore we have now enabled TLS verification. This means that downloads by `<nix/fetchurl.nix>` will now fail if you're fetching from a HTTPS server that does not have a valid certificate.
|
||||
|
||||
`<nix/fetchurl.nix>` is also known as the builtin derivation builder `builtin:fetchurl`. It's not to be confused with the evaluation-time function `builtins.fetchurl`, which was not affected by this issue.
|
||||
@@ -0,0 +1,63 @@
|
||||
xp_features_json = custom_target(
|
||||
command : [nix, '__dump-xp-features'],
|
||||
capture : true,
|
||||
output : 'xp-features.json',
|
||||
)
|
||||
|
||||
experimental_features_shortlist_md = custom_target(
|
||||
command : nix_eval_for_docs + [
|
||||
'--expr',
|
||||
'import @INPUT0@ (builtins.fromJSON (builtins.readFile ./@INPUT1@))',
|
||||
],
|
||||
input : [
|
||||
'../../generate-xp-features-shortlist.nix',
|
||||
xp_features_json,
|
||||
],
|
||||
output : 'experimental-features-shortlist.md',
|
||||
capture : true,
|
||||
env : nix_env_for_docs,
|
||||
)
|
||||
|
||||
nix3_cli_files = custom_target(
|
||||
command : [
|
||||
python.full_path(),
|
||||
'@INPUT0@',
|
||||
'@OUTPUT@',
|
||||
'--'
|
||||
] + nix_eval_for_docs + [
|
||||
'--expr',
|
||||
'import @INPUT1@ true (builtins.readFile ./@INPUT2@)',
|
||||
],
|
||||
input : [
|
||||
'../../remove_before_wrapper.py',
|
||||
'../../generate-manpage.nix',
|
||||
nix3_cli_json,
|
||||
],
|
||||
output : 'new-cli',
|
||||
env : nix_env_for_docs,
|
||||
)
|
||||
|
||||
conf_file_md_body = custom_target(
|
||||
command : [
|
||||
nix_eval_for_docs,
|
||||
'--expr',
|
||||
'import @INPUT0@ { prefix = "conf"; } (builtins.fromJSON (builtins.readFile ./@INPUT1@))',
|
||||
],
|
||||
capture : true,
|
||||
input : [
|
||||
'../../generate-settings.nix',
|
||||
conf_file_json,
|
||||
],
|
||||
output : 'conf-file.body.md',
|
||||
env : nix_env_for_docs,
|
||||
)
|
||||
|
||||
conf_file_md = custom_target(
|
||||
command : [ 'cat', '@INPUT0@', '@INPUT1@' ],
|
||||
capture : true,
|
||||
input : [
|
||||
'conf-file-prefix.md',
|
||||
conf_file_md_body,
|
||||
],
|
||||
output : 'conf-file.md',
|
||||
)
|
||||
@@ -62,7 +62,7 @@ These pages can be viewed offline:
|
||||
|
||||
Several operations, such as [`nix-env --query`](./nix-env/query.md) and [`nix-env --install`](./nix-env/install.md), take a list of *arguments* that specify the packages on which to operate.
|
||||
|
||||
Packages are identified based on a `name` part and a `version` part of a [symbolic derivation name](@docroot@/language/derivations.md#attr-names):
|
||||
Packages are identified based on a `name` part and a `version` part of a [symbolic derivation name](@docroot@/language/derivations.md#attr-name):
|
||||
|
||||
- `name`: Everything up to but not including the first dash (`-`) that is *not* followed by a letter.
|
||||
- `version`: The rest, excluding the separating dash.
|
||||
|
||||
@@ -104,7 +104,7 @@ symlink.
|
||||
|
||||
Prints a set of derivation files (`.drv`) which are supposed produce
|
||||
said paths when realized. Might print nothing, for example for source paths
|
||||
or paths subsituted from a binary cache.
|
||||
or paths substituted from a binary cache.
|
||||
|
||||
- `--graph`
|
||||
|
||||
@@ -241,4 +241,3 @@ $ nix-store --query --roots $(which svn)
|
||||
/nix/var/nix/profiles/default-82-link
|
||||
/home/eelco/.local/state/nix/profiles/profile-97-link
|
||||
```
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
experimental_feature_descriptions_md = custom_target(
|
||||
command : nix_eval_for_docs + [
|
||||
'--expr',
|
||||
'import @INPUT0@ (builtins.fromJSON (builtins.readFile @INPUT1@))',
|
||||
],
|
||||
input : [
|
||||
'../../generate-xp-features.nix',
|
||||
xp_features_json,
|
||||
],
|
||||
capture : true,
|
||||
output : 'experimental-feature-descriptions.md',
|
||||
)
|
||||
@@ -27,7 +27,7 @@ The unit tests are defined using the [googletest] and [rapidcheck] frameworks.
|
||||
> An example of some files, demonstrating much of what is described below
|
||||
>
|
||||
> ```
|
||||
> src
|
||||
> subprojects
|
||||
> ├── libexpr
|
||||
> │ ├── local.mk
|
||||
> │ ├── value/context.hh
|
||||
@@ -59,12 +59,12 @@ The unit tests are defined using the [googletest] and [rapidcheck] frameworks.
|
||||
> …
|
||||
> ```
|
||||
|
||||
The tests for each Nix library (`libnixexpr`, `libnixstore`, etc..) live inside a directory `src/${library_name_without-nix}-test`.
|
||||
Given an interface (header) and implementation pair in the original library, say, `src/libexpr/value/context.{hh,cc}`, we write tests for it in `src/nix-expr-tests/value/context.cc`, and (possibly) declare/define additional interfaces for testing purposes in `src/nix-expr-test-support/tests/value/context.{hh,cc}`.
|
||||
The tests for each Nix library (`libnixexpr`, `libnixstore`, etc..) live inside a directory `subprojects/${library_name_without-nix}-test`.
|
||||
Given an interface (header) and implementation pair in the original library, say, `subprojects/libexpr/value/context.{hh,cc}`, we write tests for it in `subprojects/nix-expr-tests/value/context.cc`, and (possibly) declare/define additional interfaces for testing purposes in `subprojects/nix-expr-test-support/tests/value/context.{hh,cc}`.
|
||||
|
||||
Data for unit tests is stored in a `data` subdir of the directory for each unit test executable.
|
||||
For example, `libnixstore` code is in `src/libstore`, and its test data is in `src/nix-store-tests/data`.
|
||||
The path to the `src/${library_name_without-nix}-test/data` directory is passed to the unit test executable with the environment variable `_NIX_TEST_UNIT_DATA`.
|
||||
For example, `libnixstore` code is in `subprojects/libstore`, and its test data is in `subprojects/nix-store-tests/data`.
|
||||
The path to the `subprojects/${library_name_without-nix}-test/data` directory is passed to the unit test executable with the environment variable `_NIX_TEST_UNIT_DATA`.
|
||||
Note that each executable only gets the data for its tests.
|
||||
|
||||
The unit test libraries are in `src/${library_name_without-nix}-test-support`.
|
||||
@@ -162,7 +162,7 @@ ninja: no work to do.
|
||||
Individual tests can be run with `meson`:
|
||||
|
||||
```shell-session
|
||||
$ meson test ${testName}
|
||||
$ meson test --verbose ${testName}
|
||||
ninja: Entering directory `/home/jcericson/src/nix/master/build'
|
||||
ninja: no work to do.
|
||||
1/1 nix-functional-tests:main / ${testName} OK 0.41s
|
||||
@@ -177,7 +177,11 @@ Timeout: 0
|
||||
Full log written to /home/jcericson/src/nix/master/build/meson-logs/testlog.txt
|
||||
```
|
||||
|
||||
or without `meson`, showing the output:
|
||||
The `--verbose` flag will make Meson also show the console output of each test for easier debugging.
|
||||
The test script will then be traced with `set -x` and the output displayed as it happens,
|
||||
regardless of whether the test succeeds or fails.
|
||||
|
||||
Tests can be also run directly without `meson`:
|
||||
|
||||
```shell-session
|
||||
$ TEST_NAME=${testName} NIX_REMOTE='' PS4='+(${BASH_SOURCE[0]-$0}:$LINENO) tests/functional/${testName}.sh
|
||||
@@ -188,8 +192,6 @@ output from bar
|
||||
...
|
||||
```
|
||||
|
||||
The test script will then be traced with `set -x` and the output displayed as it happens, regardless of whether the test succeeds or fails.
|
||||
|
||||
### Debugging failing functional tests
|
||||
|
||||
When a functional test fails, it usually does so somewhere in the middle of the script.
|
||||
|
||||
@@ -23,7 +23,7 @@ This option requires either:
|
||||
> when running Nix commands, refer to GitHub issue [NixOS/nix#10892](https://github.com/NixOS/nix/issues/10892) for instructions to fix your installation without reinstalling.
|
||||
|
||||
```console
|
||||
$ bash <(curl -L https://nixos.org/nix/install) --daemon
|
||||
$ curl -L https://nixos.org/nix/install | sh -s -- --daemon
|
||||
```
|
||||
|
||||
## Single-user
|
||||
@@ -36,7 +36,7 @@ cannot offer equivalent sharing, isolation, or security.
|
||||
This option is suitable for systems without systemd.
|
||||
|
||||
```console
|
||||
$ bash <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||
$ curl -L https://nixos.org/nix/install | sh -s -- --no-daemon
|
||||
```
|
||||
|
||||
## Distributions
|
||||
|
||||
@@ -100,7 +100,7 @@ which you may remove.
|
||||
LABEL=Nix\040Store /nix apfs rw,nobrowse
|
||||
```
|
||||
|
||||
by setting the cursor on the respective line using the error keys, and pressing `dd`, and then `:wq` to save the file.
|
||||
by setting the cursor on the respective line using the arrow keys, and pressing `dd`, and then `:wq` to save the file.
|
||||
|
||||
This will prevent automatic mounting of the Nix Store volume.
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
# Language Constructs
|
||||
@@ -113,7 +113,7 @@ It outputs an attribute set, and produces a [store derivation] as a side effect
|
||||
|
||||
### Optional
|
||||
|
||||
- [`args`]{#attr-args} ([List](@docroot@/language/types.md#list) of [String](@docroot@/language/types.md#type-string))
|
||||
- [`args`]{#attr-args} ([List](@docroot@/language/types.md#type-list) of [String](@docroot@/language/types.md#type-string))
|
||||
|
||||
Default: `[ ]`
|
||||
|
||||
@@ -132,7 +132,7 @@ It outputs an attribute set, and produces a [store derivation] as a side effect
|
||||
> };
|
||||
> ```
|
||||
|
||||
- [`outputs`]{#attr-outputs} ([List](@docroot@/language/types.md#list) of [String](@docroot@/language/types.md#type-string))
|
||||
- [`outputs`]{#attr-outputs} ([List](@docroot@/language/types.md#type-list) of [String](@docroot@/language/types.md#type-string))
|
||||
|
||||
Default: `[ "out" ]`
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
builtins_md = custom_target(
|
||||
command : [
|
||||
python.full_path(),
|
||||
'@INPUT0@',
|
||||
'@OUTPUT@',
|
||||
'--'
|
||||
] + nix_eval_for_docs + [
|
||||
'--expr',
|
||||
'(builtins.readFile @INPUT3@) + import @INPUT1@ (builtins.fromJSON (builtins.readFile ./@INPUT2@)) + (builtins.readFile @INPUT4@)',
|
||||
],
|
||||
input : [
|
||||
'../../remove_before_wrapper.py',
|
||||
'../../generate-builtins.nix',
|
||||
language_json,
|
||||
'builtins-prefix.md',
|
||||
'builtins-suffix.md'
|
||||
],
|
||||
output : 'builtins.md',
|
||||
env : nix_env_for_docs,
|
||||
)
|
||||
@@ -33,7 +33,7 @@
|
||||
[path]: ./types.md#type-path
|
||||
[number]: ./types.md#type-float
|
||||
[list]: ./types.md#type-list
|
||||
[attribute set]: ./types.md#attribute-set
|
||||
[attribute set]: ./types.md#type-attrs
|
||||
|
||||
<!-- TODO(@rhendric, #10970): ^ rationalize number -> int/float -->
|
||||
|
||||
@@ -75,7 +75,7 @@ The result is a [Boolean] value.
|
||||
|
||||
See also: [`builtins.hasAttr`](@docroot@/language/builtins.md#builtins-hasAttr)
|
||||
|
||||
[Boolean]: ./types.md#type-boolean
|
||||
[Boolean]: ./types.md#type-bool
|
||||
|
||||
[Has attribute]: #has-attribute
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
# Data Types
|
||||
@@ -0,0 +1,17 @@
|
||||
summary_rl_next = custom_target(
|
||||
command : [
|
||||
bash,
|
||||
'-euo', 'pipefail',
|
||||
'-c',
|
||||
'''
|
||||
if [ -e "@INPUT@" ]; then
|
||||
echo ' - [Upcoming release](release-notes/rl-next.md)'
|
||||
fi
|
||||
''',
|
||||
],
|
||||
input : [
|
||||
rl_next_generated,
|
||||
],
|
||||
capture: true,
|
||||
output : 'SUMMARY-rl-next.md',
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
# JSON Formats
|
||||
@@ -0,0 +1,24 @@
|
||||
rl_next_generated = custom_target(
|
||||
command : [
|
||||
'bash',
|
||||
'-euo',
|
||||
'pipefail',
|
||||
'-c',
|
||||
'''
|
||||
if type -p build-release-notes > /dev/null; then
|
||||
build-release-notes --change-authors @CURRENT_SOURCE_DIR@/../../change-authors.yml @CURRENT_SOURCE_DIR@/../../rl-next
|
||||
elif type -p changelog-d > /dev/null; then
|
||||
changelog-d @CURRENT_SOURCE_DIR@/../../rl-next
|
||||
fi
|
||||
@0@ @INPUT0@ @CURRENT_SOURCE_DIR@/../../rl-next > @DEPFILE@
|
||||
'''.format(
|
||||
python.full_path(),
|
||||
),
|
||||
],
|
||||
input : [
|
||||
generate_manual_deps,
|
||||
],
|
||||
output : 'rl-next.md',
|
||||
capture : true,
|
||||
depfile : 'rl-next.d',
|
||||
)
|
||||
@@ -96,7 +96,7 @@
|
||||
Nix can now warn when evaluation of a Nix expression causes a large
|
||||
path to be copied to the Nix store. The threshold for this warning can
|
||||
be configured using [the `warn-large-path-threshold`
|
||||
setting](@docroot@/command-ref/conf-file.md#warn-large-path-threshold),
|
||||
setting](@docroot@/command-ref/conf-file.md#conf-warn-large-path-threshold),
|
||||
e.g. `--warn-large-path-threshold 100M` will warn about paths larger
|
||||
than 100 MiB.
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
types_dir = custom_target(
|
||||
command : [
|
||||
python.full_path(),
|
||||
'@INPUT0@',
|
||||
'@OUTPUT@',
|
||||
'--'
|
||||
] + nix_eval_for_docs + [
|
||||
'--expr',
|
||||
'import @INPUT1@ (builtins.fromJSON (builtins.readFile ./@INPUT2@)).stores',
|
||||
],
|
||||
input : [
|
||||
'../../remove_before_wrapper.py',
|
||||
'../../generate-store-types.nix',
|
||||
nix3_cli_json,
|
||||
],
|
||||
output : 'types',
|
||||
env : nix_env_for_docs,
|
||||
)
|
||||
@@ -0,0 +1,111 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from pathlib import Path
|
||||
import json
|
||||
import os, os.path
|
||||
import sys
|
||||
import typing as t
|
||||
|
||||
name = 'substitute.py'
|
||||
|
||||
def log(*args: t.Any, **kwargs: t.Any) -> None:
|
||||
kwargs['file'] = sys.stderr
|
||||
print(f'{name}:', *args, **kwargs)
|
||||
|
||||
def do_include(content: str, relative_md_path: Path, source_root: Path, search_path: Path) -> str:
|
||||
assert not relative_md_path.is_absolute(), f'{relative_md_path=} from mdbook should be relative'
|
||||
|
||||
md_path_abs = source_root / relative_md_path
|
||||
var_abs = md_path_abs.parent
|
||||
assert var_abs.is_dir(), f'supposed directory {var_abs} is not a directory (cwd={os.getcwd()})'
|
||||
|
||||
lines = []
|
||||
for l in content.splitlines(keepends=True):
|
||||
if l.strip().startswith("{{#include "):
|
||||
requested = l.strip()[11:][:-2]
|
||||
if requested.startswith("@generated@/"):
|
||||
included = search_path / Path(requested[12:])
|
||||
requested = included.relative_to(search_path)
|
||||
else:
|
||||
included = source_root / relative_md_path.parent / requested
|
||||
requested = included.resolve().relative_to(source_root)
|
||||
assert included.exists(), f"{requested} not found at {included}"
|
||||
lines.append(do_include(included.read_text(), requested, source_root, search_path) + "\n")
|
||||
else:
|
||||
lines.append(l)
|
||||
return "".join(lines)
|
||||
|
||||
def recursive_replace(data: dict[str, t.Any], book_root: Path, search_path: Path) -> dict[str, t.Any]:
|
||||
match data:
|
||||
case {'sections': sections}:
|
||||
return data | dict(
|
||||
sections = [recursive_replace(section, book_root, search_path) for section in sections],
|
||||
)
|
||||
case {'Chapter': chapter}:
|
||||
path_to_chapter = Path(chapter['path'])
|
||||
chapter_content = chapter['content']
|
||||
|
||||
return data | dict(
|
||||
Chapter = chapter | dict(
|
||||
# first process includes. this must happen before docroot processing since
|
||||
# mdbook does not see these included files, only the final agglomeration.
|
||||
content = do_include(
|
||||
chapter_content,
|
||||
path_to_chapter,
|
||||
book_root,
|
||||
search_path
|
||||
).replace(
|
||||
'@docroot@',
|
||||
("../" * len(path_to_chapter.parent.parts) or "./")[:-1]
|
||||
),
|
||||
sub_items = [
|
||||
recursive_replace(sub_item, book_root, search_path)
|
||||
for sub_item in chapter['sub_items']
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
case rest:
|
||||
assert False, f'should have been called on a dict, not {type(rest)=}\n\t{rest=}'
|
||||
|
||||
def main() -> None:
|
||||
|
||||
|
||||
if len(sys.argv) > 1 and sys.argv[1] == 'supports':
|
||||
return 0
|
||||
|
||||
# includes pointing into @generated@ will look here
|
||||
search_path = Path(os.environ['MDBOOK_SUBSTITUTE_SEARCH'])
|
||||
|
||||
if len(sys.argv) > 1 and sys.argv[1] == 'summary':
|
||||
print(do_include(
|
||||
sys.stdin.read(),
|
||||
Path('src/SUMMARY.md'),
|
||||
Path(sys.argv[2]).resolve(),
|
||||
search_path))
|
||||
return
|
||||
|
||||
# mdbook communicates with us over stdin and stdout.
|
||||
# It splorks us a JSON array, the first element describing the context,
|
||||
# the second element describing the book itself,
|
||||
# and then expects us to send it the modified book JSON over stdout.
|
||||
|
||||
context, book = json.load(sys.stdin)
|
||||
|
||||
# book_root is the directory where book contents leave (ie, src/)
|
||||
book_root = Path(context['root']) / context['config']['book']['src']
|
||||
|
||||
# Find @var@ in all parts of our recursive book structure.
|
||||
replaced_content = recursive_replace(book, book_root, search_path)
|
||||
|
||||
replaced_content_str = json.dumps(replaced_content)
|
||||
|
||||
# Give mdbook our changes.
|
||||
print(replaced_content_str)
|
||||
|
||||
try:
|
||||
sys.exit(main())
|
||||
except AssertionError as e:
|
||||
print(f'{name}: INTERNAL ERROR in mdbook preprocessor: {e}', file=sys.stderr)
|
||||
print(f'this is a bug in {name}', file=sys.stderr)
|
||||
raise
|
||||
Generated
+4
-4
@@ -80,16 +80,16 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1726674819,
|
||||
"narHash": "sha256-qyfnYJsZq8cBBat6oGjHnu5MaWbNw47Ph31fX0iWPIU=",
|
||||
"lastModified": 1723688146,
|
||||
"narHash": "sha256-sqLwJcHYeWLOeP/XoLwAtYjr01TISlkOfz+NG82pbdg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "3a458f7c763ca62c6bf454b8d828bd86b7250671",
|
||||
"rev": "c3d4ac725177c030b1e289015989da2ad9d56af0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "release-24.05",
|
||||
"ref": "nixos-24.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
description = "The purely functional package manager";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||||
inputs.nixpkgs-regression.url = "github:NixOS/nixpkgs/215d4d0fd80ca5163643b03a33fde804a29cc1e2";
|
||||
inputs.nixpkgs-23-11.url = "github:NixOS/nixpkgs/a62e6edd6d5e1fa0329b8653c801147986f8d446";
|
||||
inputs.flake-compat = { url = "github:edolstra/flake-compat"; flake = false; };
|
||||
@@ -139,12 +139,6 @@
|
||||
|
||||
nix = final.nixComponents.nix;
|
||||
|
||||
nix-serve =
|
||||
prev.nix-serve.override {
|
||||
# undo potential version pinning
|
||||
nix = final.nix;
|
||||
};
|
||||
|
||||
# See https://github.com/NixOS/nixpkgs/pull/214409
|
||||
# Remove when fixed in this flake's nixpkgs
|
||||
pre-commit =
|
||||
@@ -227,6 +221,7 @@
|
||||
inherit (nixpkgsFor.${system}.native)
|
||||
changelog-d;
|
||||
default = self.packages.${system}.nix-ng;
|
||||
nix-manual = nixpkgsFor.${system}.native.nixComponents.nix-manual;
|
||||
nix-internal-api-docs = nixpkgsFor.${system}.native.nixComponents.nix-internal-api-docs;
|
||||
nix-external-api-docs = nixpkgsFor.${system}.native.nixComponents.nix-external-api-docs;
|
||||
}
|
||||
@@ -355,9 +350,10 @@
|
||||
++ pkgs.nixComponents.nix-store.nativeBuildInputs
|
||||
++ pkgs.nixComponents.nix-fetchers.nativeBuildInputs
|
||||
++ lib.optionals havePerl pkgs.nixComponents.nix-perl-bindings.nativeBuildInputs
|
||||
++ lib.optionals buildCanExecuteHost pkgs.nixComponents.nix-manual.externalNativeBuildInputs
|
||||
++ pkgs.nixComponents.nix-internal-api-docs.nativeBuildInputs
|
||||
++ pkgs.nixComponents.nix-external-api-docs.nativeBuildInputs
|
||||
++ pkgs.nixComponents.nix-functional-tests.baseNativeBuildInputs
|
||||
++ pkgs.nixComponents.nix-functional-tests.externalNativeBuildInputs
|
||||
++ lib.optional
|
||||
(!buildCanExecuteHost
|
||||
# Hack around https://github.com/nixos/nixpkgs/commit/bf7ad8cfbfa102a90463433e2c5027573b462479
|
||||
|
||||
@@ -2,14 +2,14 @@ GLOBAL_CXXFLAGS += -Wno-deprecated-declarations -Werror=switch
|
||||
# Allow switch-enum to be overridden for files that do not support it, usually because of dependency headers.
|
||||
ERROR_SWITCH_ENUM = -Werror=switch-enum
|
||||
|
||||
$(foreach i, config.h $(wildcard src/lib*/*.hh) $(filter-out %_internal.h, $(wildcard src/lib*c/*.h)), \
|
||||
$(foreach i, config.h $(wildcard subprojects/lib*/*.hh) $(filter-out %_internal.h, $(wildcard subprojects/lib*c/*.h)), \
|
||||
$(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))
|
||||
|
||||
ifdef HOST_UNIX
|
||||
$(foreach i, $(wildcard src/lib*/unix/*.hh), \
|
||||
$(foreach i, $(wildcard subprojects/lib*/unix/*.hh), \
|
||||
$(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))
|
||||
endif
|
||||
|
||||
$(GCH): src/libutil/util.hh config.h
|
||||
$(GCH): subprojects/libutil/util.hh config.h
|
||||
|
||||
GCH_CXXFLAGS = $(INCLUDE_libutil)
|
||||
+398
-398
@@ -25,402 +25,402 @@
|
||||
''^doc/manual/redirects\.js$''
|
||||
''^doc/manual/theme/highlight\.js$''
|
||||
''^precompiled-headers\.h$''
|
||||
''^src/build-remote/build-remote\.cc$''
|
||||
''^src/libcmd/built-path\.cc$''
|
||||
''^src/libcmd/built-path\.hh$''
|
||||
''^src/libcmd/command\.cc$''
|
||||
''^src/libcmd/command\.hh$''
|
||||
''^src/libcmd/common-eval-args\.cc$''
|
||||
''^src/libcmd/common-eval-args\.hh$''
|
||||
''^src/libcmd/editor-for\.cc$''
|
||||
''^src/libcmd/installable-attr-path\.cc$''
|
||||
''^src/libcmd/installable-attr-path\.hh$''
|
||||
''^src/libcmd/installable-derived-path\.cc$''
|
||||
''^src/libcmd/installable-derived-path\.hh$''
|
||||
''^src/libcmd/installable-flake\.cc$''
|
||||
''^src/libcmd/installable-flake\.hh$''
|
||||
''^src/libcmd/installable-value\.cc$''
|
||||
''^src/libcmd/installable-value\.hh$''
|
||||
''^src/libcmd/installables\.cc$''
|
||||
''^src/libcmd/installables\.hh$''
|
||||
''^src/libcmd/legacy\.hh$''
|
||||
''^src/libcmd/markdown\.cc$''
|
||||
''^src/libcmd/misc-store-flags\.cc$''
|
||||
''^src/libcmd/repl-interacter\.cc$''
|
||||
''^src/libcmd/repl-interacter\.hh$''
|
||||
''^src/libcmd/repl\.cc$''
|
||||
''^src/libcmd/repl\.hh$''
|
||||
''^src/libexpr-c/nix_api_expr\.cc$''
|
||||
''^src/libexpr-c/nix_api_external\.cc$''
|
||||
''^src/libexpr/attr-path\.cc$''
|
||||
''^src/libexpr/attr-path\.hh$''
|
||||
''^src/libexpr/attr-set\.cc$''
|
||||
''^src/libexpr/attr-set\.hh$''
|
||||
''^src/libexpr/eval-cache\.cc$''
|
||||
''^src/libexpr/eval-cache\.hh$''
|
||||
''^src/libexpr/eval-error\.cc$''
|
||||
''^src/libexpr/eval-inline\.hh$''
|
||||
''^src/libexpr/eval-settings\.cc$''
|
||||
''^src/libexpr/eval-settings\.hh$''
|
||||
''^src/libexpr/eval\.cc$''
|
||||
''^src/libexpr/eval\.hh$''
|
||||
''^src/libexpr/function-trace\.cc$''
|
||||
''^src/libexpr/gc-small-vector\.hh$''
|
||||
''^src/libexpr/get-drvs\.cc$''
|
||||
''^src/libexpr/get-drvs\.hh$''
|
||||
''^src/libexpr/json-to-value\.cc$''
|
||||
''^src/libexpr/nixexpr\.cc$''
|
||||
''^src/libexpr/nixexpr\.hh$''
|
||||
''^src/libexpr/parser-state\.hh$''
|
||||
''^src/libexpr/pos-table\.hh$''
|
||||
''^src/libexpr/primops\.cc$''
|
||||
''^src/libexpr/primops\.hh$''
|
||||
''^src/libexpr/primops/context\.cc$''
|
||||
''^src/libexpr/primops/fetchClosure\.cc$''
|
||||
''^src/libexpr/primops/fetchMercurial\.cc$''
|
||||
''^src/libexpr/primops/fetchTree\.cc$''
|
||||
''^src/libexpr/primops/fromTOML\.cc$''
|
||||
''^src/libexpr/print-ambiguous\.cc$''
|
||||
''^src/libexpr/print-ambiguous\.hh$''
|
||||
''^src/libexpr/print-options\.hh$''
|
||||
''^src/libexpr/print\.cc$''
|
||||
''^src/libexpr/print\.hh$''
|
||||
''^src/libexpr/search-path\.cc$''
|
||||
''^src/libexpr/symbol-table\.hh$''
|
||||
''^src/libexpr/value-to-json\.cc$''
|
||||
''^src/libexpr/value-to-json\.hh$''
|
||||
''^src/libexpr/value-to-xml\.cc$''
|
||||
''^src/libexpr/value-to-xml\.hh$''
|
||||
''^src/libexpr/value\.hh$''
|
||||
''^src/libexpr/value/context\.cc$''
|
||||
''^src/libexpr/value/context\.hh$''
|
||||
''^src/libfetchers/attrs\.cc$''
|
||||
''^src/libfetchers/cache\.cc$''
|
||||
''^src/libfetchers/cache\.hh$''
|
||||
''^src/libfetchers/fetch-settings\.cc$''
|
||||
''^src/libfetchers/fetch-settings\.hh$''
|
||||
''^src/libfetchers/fetch-to-store\.cc$''
|
||||
''^src/libfetchers/fetchers\.cc$''
|
||||
''^src/libfetchers/fetchers\.hh$''
|
||||
''^src/libfetchers/filtering-source-accessor\.cc$''
|
||||
''^src/libfetchers/filtering-source-accessor\.hh$''
|
||||
''^src/libfetchers/fs-source-accessor\.cc$''
|
||||
''^src/libfetchers/fs-source-accessor\.hh$''
|
||||
''^src/libfetchers/git-utils\.cc$''
|
||||
''^src/libfetchers/git-utils\.hh$''
|
||||
''^src/libfetchers/github\.cc$''
|
||||
''^src/libfetchers/indirect\.cc$''
|
||||
''^src/libfetchers/memory-source-accessor\.cc$''
|
||||
''^src/libfetchers/path\.cc$''
|
||||
''^src/libfetchers/registry\.cc$''
|
||||
''^src/libfetchers/registry\.hh$''
|
||||
''^src/libfetchers/tarball\.cc$''
|
||||
''^src/libfetchers/tarball\.hh$''
|
||||
''^src/libfetchers/git\.cc$''
|
||||
''^src/libfetchers/mercurial\.cc$''
|
||||
''^src/libflake/flake/config\.cc$''
|
||||
''^src/libflake/flake/flake\.cc$''
|
||||
''^src/libflake/flake/flake\.hh$''
|
||||
''^src/libflake/flake/flakeref\.cc$''
|
||||
''^src/libflake/flake/flakeref\.hh$''
|
||||
''^src/libflake/flake/lockfile\.cc$''
|
||||
''^src/libflake/flake/lockfile\.hh$''
|
||||
''^src/libflake/flake/url-name\.cc$''
|
||||
''^src/libmain/common-args\.cc$''
|
||||
''^src/libmain/common-args\.hh$''
|
||||
''^src/libmain/loggers\.cc$''
|
||||
''^src/libmain/loggers\.hh$''
|
||||
''^src/libmain/progress-bar\.cc$''
|
||||
''^src/libmain/shared\.cc$''
|
||||
''^src/libmain/shared\.hh$''
|
||||
''^src/libmain/unix/stack\.cc$''
|
||||
''^src/libstore/binary-cache-store\.cc$''
|
||||
''^src/libstore/binary-cache-store\.hh$''
|
||||
''^src/libstore/build-result\.hh$''
|
||||
''^src/libstore/builtins\.hh$''
|
||||
''^src/libstore/builtins/buildenv\.cc$''
|
||||
''^src/libstore/builtins/buildenv\.hh$''
|
||||
''^src/libstore/common-protocol-impl\.hh$''
|
||||
''^src/libstore/common-protocol\.cc$''
|
||||
''^src/libstore/common-protocol\.hh$''
|
||||
''^src/libstore/common-ssh-store-config\.hh$''
|
||||
''^src/libstore/content-address\.cc$''
|
||||
''^src/libstore/content-address\.hh$''
|
||||
''^src/libstore/daemon\.cc$''
|
||||
''^src/libstore/daemon\.hh$''
|
||||
''^src/libstore/derivations\.cc$''
|
||||
''^src/libstore/derivations\.hh$''
|
||||
''^src/libstore/derived-path-map\.cc$''
|
||||
''^src/libstore/derived-path-map\.hh$''
|
||||
''^src/libstore/derived-path\.cc$''
|
||||
''^src/libstore/derived-path\.hh$''
|
||||
''^src/libstore/downstream-placeholder\.cc$''
|
||||
''^src/libstore/downstream-placeholder\.hh$''
|
||||
''^src/libstore/dummy-store\.cc$''
|
||||
''^src/libstore/export-import\.cc$''
|
||||
''^src/libstore/filetransfer\.cc$''
|
||||
''^src/libstore/filetransfer\.hh$''
|
||||
''^src/libstore/gc-store\.hh$''
|
||||
''^src/libstore/globals\.cc$''
|
||||
''^src/libstore/globals\.hh$''
|
||||
''^src/libstore/http-binary-cache-store\.cc$''
|
||||
''^src/libstore/legacy-ssh-store\.cc$''
|
||||
''^src/libstore/legacy-ssh-store\.hh$''
|
||||
''^src/libstore/length-prefixed-protocol-helper\.hh$''
|
||||
''^src/libstore/linux/personality\.cc$''
|
||||
''^src/libstore/linux/personality\.hh$''
|
||||
''^src/libstore/local-binary-cache-store\.cc$''
|
||||
''^src/libstore/local-fs-store\.cc$''
|
||||
''^src/libstore/local-fs-store\.hh$''
|
||||
''^src/libstore/log-store\.cc$''
|
||||
''^src/libstore/log-store\.hh$''
|
||||
''^src/libstore/machines\.cc$''
|
||||
''^src/libstore/machines\.hh$''
|
||||
''^src/libstore/make-content-addressed\.cc$''
|
||||
''^src/libstore/make-content-addressed\.hh$''
|
||||
''^src/libstore/misc\.cc$''
|
||||
''^src/libstore/names\.cc$''
|
||||
''^src/libstore/names\.hh$''
|
||||
''^src/libstore/nar-accessor\.cc$''
|
||||
''^src/libstore/nar-accessor\.hh$''
|
||||
''^src/libstore/nar-info-disk-cache\.cc$''
|
||||
''^src/libstore/nar-info-disk-cache\.hh$''
|
||||
''^src/libstore/nar-info\.cc$''
|
||||
''^src/libstore/nar-info\.hh$''
|
||||
''^src/libstore/outputs-spec\.cc$''
|
||||
''^src/libstore/outputs-spec\.hh$''
|
||||
''^src/libstore/parsed-derivations\.cc$''
|
||||
''^src/libstore/path-info\.cc$''
|
||||
''^src/libstore/path-info\.hh$''
|
||||
''^src/libstore/path-references\.cc$''
|
||||
''^src/libstore/path-regex\.hh$''
|
||||
''^src/libstore/path-with-outputs\.cc$''
|
||||
''^src/libstore/path\.cc$''
|
||||
''^src/libstore/path\.hh$''
|
||||
''^src/libstore/pathlocks\.cc$''
|
||||
''^src/libstore/pathlocks\.hh$''
|
||||
''^src/libstore/profiles\.cc$''
|
||||
''^src/libstore/profiles\.hh$''
|
||||
''^src/libstore/realisation\.cc$''
|
||||
''^src/libstore/realisation\.hh$''
|
||||
''^src/libstore/remote-fs-accessor\.cc$''
|
||||
''^src/libstore/remote-fs-accessor\.hh$''
|
||||
''^src/libstore/remote-store-connection\.hh$''
|
||||
''^src/libstore/remote-store\.cc$''
|
||||
''^src/libstore/remote-store\.hh$''
|
||||
''^src/libstore/s3-binary-cache-store\.cc$''
|
||||
''^src/libstore/s3\.hh$''
|
||||
''^src/libstore/serve-protocol-impl\.cc$''
|
||||
''^src/libstore/serve-protocol-impl\.hh$''
|
||||
''^src/libstore/serve-protocol\.cc$''
|
||||
''^src/libstore/serve-protocol\.hh$''
|
||||
''^src/libstore/sqlite\.cc$''
|
||||
''^src/libstore/sqlite\.hh$''
|
||||
''^src/libstore/ssh-store\.cc$''
|
||||
''^src/libstore/ssh\.cc$''
|
||||
''^src/libstore/ssh\.hh$''
|
||||
''^src/libstore/store-api\.cc$''
|
||||
''^src/libstore/store-api\.hh$''
|
||||
''^src/libstore/store-dir-config\.hh$''
|
||||
''^src/libstore/build/derivation-goal\.cc$''
|
||||
''^src/libstore/build/derivation-goal\.hh$''
|
||||
''^src/libstore/build/drv-output-substitution-goal\.cc$''
|
||||
''^src/libstore/build/drv-output-substitution-goal\.hh$''
|
||||
''^src/libstore/build/entry-points\.cc$''
|
||||
''^src/libstore/build/goal\.cc$''
|
||||
''^src/libstore/build/goal\.hh$''
|
||||
''^src/libstore/unix/build/hook-instance\.cc$''
|
||||
''^src/libstore/unix/build/local-derivation-goal\.cc$''
|
||||
''^src/libstore/unix/build/local-derivation-goal\.hh$''
|
||||
''^src/libstore/build/substitution-goal\.cc$''
|
||||
''^src/libstore/build/substitution-goal\.hh$''
|
||||
''^src/libstore/build/worker\.cc$''
|
||||
''^src/libstore/build/worker\.hh$''
|
||||
''^src/libstore/builtins/fetchurl\.cc$''
|
||||
''^src/libstore/builtins/unpack-channel\.cc$''
|
||||
''^src/libstore/gc\.cc$''
|
||||
''^src/libstore/local-overlay-store\.cc$''
|
||||
''^src/libstore/local-overlay-store\.hh$''
|
||||
''^src/libstore/local-store\.cc$''
|
||||
''^src/libstore/local-store\.hh$''
|
||||
''^src/libstore/unix/user-lock\.cc$''
|
||||
''^src/libstore/unix/user-lock\.hh$''
|
||||
''^src/libstore/optimise-store\.cc$''
|
||||
''^src/libstore/unix/pathlocks\.cc$''
|
||||
''^src/libstore/posix-fs-canonicalise\.cc$''
|
||||
''^src/libstore/posix-fs-canonicalise\.hh$''
|
||||
''^src/libstore/uds-remote-store\.cc$''
|
||||
''^src/libstore/uds-remote-store\.hh$''
|
||||
''^src/libstore/windows/build\.cc$''
|
||||
''^src/libstore/worker-protocol-impl\.hh$''
|
||||
''^src/libstore/worker-protocol\.cc$''
|
||||
''^src/libstore/worker-protocol\.hh$''
|
||||
''^src/libutil-c/nix_api_util_internal\.h$''
|
||||
''^src/libutil/archive\.cc$''
|
||||
''^src/libutil/archive\.hh$''
|
||||
''^src/libutil/args\.cc$''
|
||||
''^src/libutil/args\.hh$''
|
||||
''^src/libutil/args/root\.hh$''
|
||||
''^src/libutil/callback\.hh$''
|
||||
''^src/libutil/canon-path\.cc$''
|
||||
''^src/libutil/canon-path\.hh$''
|
||||
''^src/libutil/chunked-vector\.hh$''
|
||||
''^src/libutil/closure\.hh$''
|
||||
''^src/libutil/comparator\.hh$''
|
||||
''^src/libutil/compute-levels\.cc$''
|
||||
''^src/libutil/config-impl\.hh$''
|
||||
''^src/libutil/config\.cc$''
|
||||
''^src/libutil/config\.hh$''
|
||||
''^src/libutil/current-process\.cc$''
|
||||
''^src/libutil/current-process\.hh$''
|
||||
''^src/libutil/english\.cc$''
|
||||
''^src/libutil/english\.hh$''
|
||||
''^src/libutil/error\.cc$''
|
||||
''^src/libutil/error\.hh$''
|
||||
''^src/libutil/exit\.hh$''
|
||||
''^src/libutil/experimental-features\.cc$''
|
||||
''^src/libutil/experimental-features\.hh$''
|
||||
''^src/libutil/file-content-address\.cc$''
|
||||
''^src/libutil/file-content-address\.hh$''
|
||||
''^src/libutil/file-descriptor\.cc$''
|
||||
''^src/libutil/file-descriptor\.hh$''
|
||||
''^src/libutil/file-path-impl\.hh$''
|
||||
''^src/libutil/file-path\.hh$''
|
||||
''^src/libutil/file-system\.cc$''
|
||||
''^src/libutil/file-system\.hh$''
|
||||
''^src/libutil/finally\.hh$''
|
||||
''^src/libutil/fmt\.hh$''
|
||||
''^src/libutil/fs-sink\.cc$''
|
||||
''^src/libutil/fs-sink\.hh$''
|
||||
''^src/libutil/git\.cc$''
|
||||
''^src/libutil/git\.hh$''
|
||||
''^src/libutil/hash\.cc$''
|
||||
''^src/libutil/hash\.hh$''
|
||||
''^src/libutil/hilite\.cc$''
|
||||
''^src/libutil/hilite\.hh$''
|
||||
''^src/libutil/source-accessor\.hh$''
|
||||
''^src/libutil/json-impls\.hh$''
|
||||
''^src/libutil/json-utils\.cc$''
|
||||
''^src/libutil/json-utils\.hh$''
|
||||
''^src/libutil/linux/cgroup\.cc$''
|
||||
''^src/libutil/linux/namespaces\.cc$''
|
||||
''^src/libutil/logging\.cc$''
|
||||
''^src/libutil/logging\.hh$''
|
||||
''^src/libutil/lru-cache\.hh$''
|
||||
''^src/libutil/memory-source-accessor\.cc$''
|
||||
''^src/libutil/memory-source-accessor\.hh$''
|
||||
''^src/libutil/pool\.hh$''
|
||||
''^src/libutil/position\.cc$''
|
||||
''^src/libutil/position\.hh$''
|
||||
''^src/libutil/posix-source-accessor\.cc$''
|
||||
''^src/libutil/posix-source-accessor\.hh$''
|
||||
''^src/libutil/processes\.hh$''
|
||||
''^src/libutil/ref\.hh$''
|
||||
''^src/libutil/references\.cc$''
|
||||
''^src/libutil/references\.hh$''
|
||||
''^src/libutil/regex-combinators\.hh$''
|
||||
''^src/libutil/serialise\.cc$''
|
||||
''^src/libutil/serialise\.hh$''
|
||||
''^src/libutil/signals\.hh$''
|
||||
''^src/libutil/signature/local-keys\.cc$''
|
||||
''^src/libutil/signature/local-keys\.hh$''
|
||||
''^src/libutil/signature/signer\.cc$''
|
||||
''^src/libutil/signature/signer\.hh$''
|
||||
''^src/libutil/source-accessor\.cc$''
|
||||
''^src/libutil/source-accessor\.hh$''
|
||||
''^src/libutil/source-path\.cc$''
|
||||
''^src/libutil/source-path\.hh$''
|
||||
''^src/libutil/split\.hh$''
|
||||
''^src/libutil/suggestions\.cc$''
|
||||
''^src/libutil/suggestions\.hh$''
|
||||
''^src/libutil/sync\.hh$''
|
||||
''^src/libutil/terminal\.cc$''
|
||||
''^src/libutil/terminal\.hh$''
|
||||
''^src/libutil/thread-pool\.cc$''
|
||||
''^src/libutil/thread-pool\.hh$''
|
||||
''^src/libutil/topo-sort\.hh$''
|
||||
''^src/libutil/types\.hh$''
|
||||
''^src/libutil/unix/file-descriptor\.cc$''
|
||||
''^src/libutil/unix/file-path\.cc$''
|
||||
''^src/libutil/unix/monitor-fd\.hh$''
|
||||
''^src/libutil/unix/processes\.cc$''
|
||||
''^src/libutil/unix/signals-impl\.hh$''
|
||||
''^src/libutil/unix/signals\.cc$''
|
||||
''^src/libutil/unix-domain-socket\.cc$''
|
||||
''^src/libutil/unix/users\.cc$''
|
||||
''^src/libutil/url-parts\.hh$''
|
||||
''^src/libutil/url\.cc$''
|
||||
''^src/libutil/url\.hh$''
|
||||
''^src/libutil/users\.cc$''
|
||||
''^src/libutil/users\.hh$''
|
||||
''^src/libutil/util\.cc$''
|
||||
''^src/libutil/util\.hh$''
|
||||
''^src/libutil/variant-wrapper\.hh$''
|
||||
''^src/libutil/windows/file-descriptor\.cc$''
|
||||
''^src/libutil/windows/file-path\.cc$''
|
||||
''^src/libutil/windows/processes\.cc$''
|
||||
''^src/libutil/windows/users\.cc$''
|
||||
''^src/libutil/windows/windows-error\.cc$''
|
||||
''^src/libutil/windows/windows-error\.hh$''
|
||||
''^src/libutil/xml-writer\.cc$''
|
||||
''^src/libutil/xml-writer\.hh$''
|
||||
''^src/nix-build/nix-build\.cc$''
|
||||
''^src/nix-channel/nix-channel\.cc$''
|
||||
''^src/nix-collect-garbage/nix-collect-garbage\.cc$''
|
||||
''^src/nix-env/buildenv.nix$''
|
||||
''^src/nix-env/nix-env\.cc$''
|
||||
''^src/nix-env/user-env\.cc$''
|
||||
''^src/nix-env/user-env\.hh$''
|
||||
''^src/nix-instantiate/nix-instantiate\.cc$''
|
||||
''^src/nix-store/dotgraph\.cc$''
|
||||
''^src/nix-store/graphml\.cc$''
|
||||
''^src/nix-store/nix-store\.cc$''
|
||||
''^src/nix/add-to-store\.cc$''
|
||||
''^src/nix/app\.cc$''
|
||||
''^src/nix/build\.cc$''
|
||||
''^src/nix/bundle\.cc$''
|
||||
''^src/nix/cat\.cc$''
|
||||
''^src/nix/config-check\.cc$''
|
||||
''^src/nix/config\.cc$''
|
||||
''^src/nix/copy\.cc$''
|
||||
''^src/nix/derivation-add\.cc$''
|
||||
''^src/nix/derivation-show\.cc$''
|
||||
''^src/nix/derivation\.cc$''
|
||||
''^src/nix/develop\.cc$''
|
||||
''^src/nix/diff-closures\.cc$''
|
||||
''^src/nix/dump-path\.cc$''
|
||||
''^src/nix/edit\.cc$''
|
||||
''^src/nix/eval\.cc$''
|
||||
''^src/nix/flake\.cc$''
|
||||
''^src/nix/fmt\.cc$''
|
||||
''^src/nix/hash\.cc$''
|
||||
''^src/nix/log\.cc$''
|
||||
''^src/nix/ls\.cc$''
|
||||
''^src/nix/main\.cc$''
|
||||
''^src/nix/make-content-addressed\.cc$''
|
||||
''^src/nix/nar\.cc$''
|
||||
''^src/nix/optimise-store\.cc$''
|
||||
''^src/nix/path-from-hash-part\.cc$''
|
||||
''^src/nix/path-info\.cc$''
|
||||
''^src/nix/prefetch\.cc$''
|
||||
''^src/nix/profile\.cc$''
|
||||
''^src/nix/realisation\.cc$''
|
||||
''^src/nix/registry\.cc$''
|
||||
''^src/nix/repl\.cc$''
|
||||
''^src/nix/run\.cc$''
|
||||
''^src/nix/run\.hh$''
|
||||
''^src/nix/search\.cc$''
|
||||
''^src/nix/sigs\.cc$''
|
||||
''^src/nix/store-copy-log\.cc$''
|
||||
''^src/nix/store-delete\.cc$''
|
||||
''^src/nix/store-gc\.cc$''
|
||||
''^src/nix/store-info\.cc$''
|
||||
''^src/nix/store-repair\.cc$''
|
||||
''^src/nix/store\.cc$''
|
||||
''^src/nix/unix/daemon\.cc$''
|
||||
''^src/nix/upgrade-nix\.cc$''
|
||||
''^src/nix/verify\.cc$''
|
||||
''^src/nix/why-depends\.cc$''
|
||||
''^subprojects/build-remote/build-remote\.cc$''
|
||||
''^subprojects/libcmd/built-path\.cc$''
|
||||
''^subprojects/libcmd/built-path\.hh$''
|
||||
''^subprojects/libcmd/command\.cc$''
|
||||
''^subprojects/libcmd/command\.hh$''
|
||||
''^subprojects/libcmd/common-eval-args\.cc$''
|
||||
''^subprojects/libcmd/common-eval-args\.hh$''
|
||||
''^subprojects/libcmd/editor-for\.cc$''
|
||||
''^subprojects/libcmd/installable-attr-path\.cc$''
|
||||
''^subprojects/libcmd/installable-attr-path\.hh$''
|
||||
''^subprojects/libcmd/installable-derived-path\.cc$''
|
||||
''^subprojects/libcmd/installable-derived-path\.hh$''
|
||||
''^subprojects/libcmd/installable-flake\.cc$''
|
||||
''^subprojects/libcmd/installable-flake\.hh$''
|
||||
''^subprojects/libcmd/installable-value\.cc$''
|
||||
''^subprojects/libcmd/installable-value\.hh$''
|
||||
''^subprojects/libcmd/installables\.cc$''
|
||||
''^subprojects/libcmd/installables\.hh$''
|
||||
''^subprojects/libcmd/legacy\.hh$''
|
||||
''^subprojects/libcmd/markdown\.cc$''
|
||||
''^subprojects/libcmd/misc-store-flags\.cc$''
|
||||
''^subprojects/libcmd/repl-interacter\.cc$''
|
||||
''^subprojects/libcmd/repl-interacter\.hh$''
|
||||
''^subprojects/libcmd/repl\.cc$''
|
||||
''^subprojects/libcmd/repl\.hh$''
|
||||
''^subprojects/libexpr-c/nix_api_expr\.cc$''
|
||||
''^subprojects/libexpr-c/nix_api_external\.cc$''
|
||||
''^subprojects/libexpr/attr-path\.cc$''
|
||||
''^subprojects/libexpr/attr-path\.hh$''
|
||||
''^subprojects/libexpr/attr-set\.cc$''
|
||||
''^subprojects/libexpr/attr-set\.hh$''
|
||||
''^subprojects/libexpr/eval-cache\.cc$''
|
||||
''^subprojects/libexpr/eval-cache\.hh$''
|
||||
''^subprojects/libexpr/eval-error\.cc$''
|
||||
''^subprojects/libexpr/eval-inline\.hh$''
|
||||
''^subprojects/libexpr/eval-settings\.cc$''
|
||||
''^subprojects/libexpr/eval-settings\.hh$''
|
||||
''^subprojects/libexpr/eval\.cc$''
|
||||
''^subprojects/libexpr/eval\.hh$''
|
||||
''^subprojects/libexpr/function-trace\.cc$''
|
||||
''^subprojects/libexpr/gc-small-vector\.hh$''
|
||||
''^subprojects/libexpr/get-drvs\.cc$''
|
||||
''^subprojects/libexpr/get-drvs\.hh$''
|
||||
''^subprojects/libexpr/json-to-value\.cc$''
|
||||
''^subprojects/libexpr/nixexpr\.cc$''
|
||||
''^subprojects/libexpr/nixexpr\.hh$''
|
||||
''^subprojects/libexpr/parser-state\.hh$''
|
||||
''^subprojects/libexpr/pos-table\.hh$''
|
||||
''^subprojects/libexpr/primops\.cc$''
|
||||
''^subprojects/libexpr/primops\.hh$''
|
||||
''^subprojects/libexpr/primops/context\.cc$''
|
||||
''^subprojects/libexpr/primops/fetchClosure\.cc$''
|
||||
''^subprojects/libexpr/primops/fetchMercurial\.cc$''
|
||||
''^subprojects/libexpr/primops/fetchTree\.cc$''
|
||||
''^subprojects/libexpr/primops/fromTOML\.cc$''
|
||||
''^subprojects/libexpr/print-ambiguous\.cc$''
|
||||
''^subprojects/libexpr/print-ambiguous\.hh$''
|
||||
''^subprojects/libexpr/print-options\.hh$''
|
||||
''^subprojects/libexpr/print\.cc$''
|
||||
''^subprojects/libexpr/print\.hh$''
|
||||
''^subprojects/libexpr/search-path\.cc$''
|
||||
''^subprojects/libexpr/symbol-table\.hh$''
|
||||
''^subprojects/libexpr/value-to-json\.cc$''
|
||||
''^subprojects/libexpr/value-to-json\.hh$''
|
||||
''^subprojects/libexpr/value-to-xml\.cc$''
|
||||
''^subprojects/libexpr/value-to-xml\.hh$''
|
||||
''^subprojects/libexpr/value\.hh$''
|
||||
''^subprojects/libexpr/value/context\.cc$''
|
||||
''^subprojects/libexpr/value/context\.hh$''
|
||||
''^subprojects/libfetchers/attrs\.cc$''
|
||||
''^subprojects/libfetchers/cache\.cc$''
|
||||
''^subprojects/libfetchers/cache\.hh$''
|
||||
''^subprojects/libfetchers/fetch-settings\.cc$''
|
||||
''^subprojects/libfetchers/fetch-settings\.hh$''
|
||||
''^subprojects/libfetchers/fetch-to-store\.cc$''
|
||||
''^subprojects/libfetchers/fetchers\.cc$''
|
||||
''^subprojects/libfetchers/fetchers\.hh$''
|
||||
''^subprojects/libfetchers/filtering-source-accessor\.cc$''
|
||||
''^subprojects/libfetchers/filtering-source-accessor\.hh$''
|
||||
''^subprojects/libfetchers/fs-source-accessor\.cc$''
|
||||
''^subprojects/libfetchers/fs-source-accessor\.hh$''
|
||||
''^subprojects/libfetchers/git-utils\.cc$''
|
||||
''^subprojects/libfetchers/git-utils\.hh$''
|
||||
''^subprojects/libfetchers/github\.cc$''
|
||||
''^subprojects/libfetchers/indirect\.cc$''
|
||||
''^subprojects/libfetchers/memory-source-accessor\.cc$''
|
||||
''^subprojects/libfetchers/path\.cc$''
|
||||
''^subprojects/libfetchers/registry\.cc$''
|
||||
''^subprojects/libfetchers/registry\.hh$''
|
||||
''^subprojects/libfetchers/tarball\.cc$''
|
||||
''^subprojects/libfetchers/tarball\.hh$''
|
||||
''^subprojects/libfetchers/git\.cc$''
|
||||
''^subprojects/libfetchers/mercurial\.cc$''
|
||||
''^subprojects/libflake/flake/config\.cc$''
|
||||
''^subprojects/libflake/flake/flake\.cc$''
|
||||
''^subprojects/libflake/flake/flake\.hh$''
|
||||
''^subprojects/libflake/flake/flakeref\.cc$''
|
||||
''^subprojects/libflake/flake/flakeref\.hh$''
|
||||
''^subprojects/libflake/flake/lockfile\.cc$''
|
||||
''^subprojects/libflake/flake/lockfile\.hh$''
|
||||
''^subprojects/libflake/flake/url-name\.cc$''
|
||||
''^subprojects/libmain/common-args\.cc$''
|
||||
''^subprojects/libmain/common-args\.hh$''
|
||||
''^subprojects/libmain/loggers\.cc$''
|
||||
''^subprojects/libmain/loggers\.hh$''
|
||||
''^subprojects/libmain/progress-bar\.cc$''
|
||||
''^subprojects/libmain/shared\.cc$''
|
||||
''^subprojects/libmain/shared\.hh$''
|
||||
''^subprojects/libmain/unix/stack\.cc$''
|
||||
''^subprojects/libstore/binary-cache-store\.cc$''
|
||||
''^subprojects/libstore/binary-cache-store\.hh$''
|
||||
''^subprojects/libstore/build-result\.hh$''
|
||||
''^subprojects/libstore/builtins\.hh$''
|
||||
''^subprojects/libstore/builtins/buildenv\.cc$''
|
||||
''^subprojects/libstore/builtins/buildenv\.hh$''
|
||||
''^subprojects/libstore/common-protocol-impl\.hh$''
|
||||
''^subprojects/libstore/common-protocol\.cc$''
|
||||
''^subprojects/libstore/common-protocol\.hh$''
|
||||
''^subprojects/libstore/common-ssh-store-config\.hh$''
|
||||
''^subprojects/libstore/content-address\.cc$''
|
||||
''^subprojects/libstore/content-address\.hh$''
|
||||
''^subprojects/libstore/daemon\.cc$''
|
||||
''^subprojects/libstore/daemon\.hh$''
|
||||
''^subprojects/libstore/derivations\.cc$''
|
||||
''^subprojects/libstore/derivations\.hh$''
|
||||
''^subprojects/libstore/derived-path-map\.cc$''
|
||||
''^subprojects/libstore/derived-path-map\.hh$''
|
||||
''^subprojects/libstore/derived-path\.cc$''
|
||||
''^subprojects/libstore/derived-path\.hh$''
|
||||
''^subprojects/libstore/downstream-placeholder\.cc$''
|
||||
''^subprojects/libstore/downstream-placeholder\.hh$''
|
||||
''^subprojects/libstore/dummy-store\.cc$''
|
||||
''^subprojects/libstore/export-import\.cc$''
|
||||
''^subprojects/libstore/filetransfer\.cc$''
|
||||
''^subprojects/libstore/filetransfer\.hh$''
|
||||
''^subprojects/libstore/gc-store\.hh$''
|
||||
''^subprojects/libstore/globals\.cc$''
|
||||
''^subprojects/libstore/globals\.hh$''
|
||||
''^subprojects/libstore/http-binary-cache-store\.cc$''
|
||||
''^subprojects/libstore/legacy-ssh-store\.cc$''
|
||||
''^subprojects/libstore/legacy-ssh-store\.hh$''
|
||||
''^subprojects/libstore/length-prefixed-protocol-helper\.hh$''
|
||||
''^subprojects/libstore/linux/personality\.cc$''
|
||||
''^subprojects/libstore/linux/personality\.hh$''
|
||||
''^subprojects/libstore/local-binary-cache-store\.cc$''
|
||||
''^subprojects/libstore/local-fs-store\.cc$''
|
||||
''^subprojects/libstore/local-fs-store\.hh$''
|
||||
''^subprojects/libstore/log-store\.cc$''
|
||||
''^subprojects/libstore/log-store\.hh$''
|
||||
''^subprojects/libstore/machines\.cc$''
|
||||
''^subprojects/libstore/machines\.hh$''
|
||||
''^subprojects/libstore/make-content-addressed\.cc$''
|
||||
''^subprojects/libstore/make-content-addressed\.hh$''
|
||||
''^subprojects/libstore/misc\.cc$''
|
||||
''^subprojects/libstore/names\.cc$''
|
||||
''^subprojects/libstore/names\.hh$''
|
||||
''^subprojects/libstore/nar-accessor\.cc$''
|
||||
''^subprojects/libstore/nar-accessor\.hh$''
|
||||
''^subprojects/libstore/nar-info-disk-cache\.cc$''
|
||||
''^subprojects/libstore/nar-info-disk-cache\.hh$''
|
||||
''^subprojects/libstore/nar-info\.cc$''
|
||||
''^subprojects/libstore/nar-info\.hh$''
|
||||
''^subprojects/libstore/outputs-spec\.cc$''
|
||||
''^subprojects/libstore/outputs-spec\.hh$''
|
||||
''^subprojects/libstore/parsed-derivations\.cc$''
|
||||
''^subprojects/libstore/path-info\.cc$''
|
||||
''^subprojects/libstore/path-info\.hh$''
|
||||
''^subprojects/libstore/path-references\.cc$''
|
||||
''^subprojects/libstore/path-regex\.hh$''
|
||||
''^subprojects/libstore/path-with-outputs\.cc$''
|
||||
''^subprojects/libstore/path\.cc$''
|
||||
''^subprojects/libstore/path\.hh$''
|
||||
''^subprojects/libstore/pathlocks\.cc$''
|
||||
''^subprojects/libstore/pathlocks\.hh$''
|
||||
''^subprojects/libstore/profiles\.cc$''
|
||||
''^subprojects/libstore/profiles\.hh$''
|
||||
''^subprojects/libstore/realisation\.cc$''
|
||||
''^subprojects/libstore/realisation\.hh$''
|
||||
''^subprojects/libstore/remote-fs-accessor\.cc$''
|
||||
''^subprojects/libstore/remote-fs-accessor\.hh$''
|
||||
''^subprojects/libstore/remote-store-connection\.hh$''
|
||||
''^subprojects/libstore/remote-store\.cc$''
|
||||
''^subprojects/libstore/remote-store\.hh$''
|
||||
''^subprojects/libstore/s3-binary-cache-store\.cc$''
|
||||
''^subprojects/libstore/s3\.hh$''
|
||||
''^subprojects/libstore/serve-protocol-impl\.cc$''
|
||||
''^subprojects/libstore/serve-protocol-impl\.hh$''
|
||||
''^subprojects/libstore/serve-protocol\.cc$''
|
||||
''^subprojects/libstore/serve-protocol\.hh$''
|
||||
''^subprojects/libstore/sqlite\.cc$''
|
||||
''^subprojects/libstore/sqlite\.hh$''
|
||||
''^subprojects/libstore/ssh-store\.cc$''
|
||||
''^subprojects/libstore/ssh\.cc$''
|
||||
''^subprojects/libstore/ssh\.hh$''
|
||||
''^subprojects/libstore/store-api\.cc$''
|
||||
''^subprojects/libstore/store-api\.hh$''
|
||||
''^subprojects/libstore/store-dir-config\.hh$''
|
||||
''^subprojects/libstore/build/derivation-goal\.cc$''
|
||||
''^subprojects/libstore/build/derivation-goal\.hh$''
|
||||
''^subprojects/libstore/build/drv-output-substitution-goal\.cc$''
|
||||
''^subprojects/libstore/build/drv-output-substitution-goal\.hh$''
|
||||
''^subprojects/libstore/build/entry-points\.cc$''
|
||||
''^subprojects/libstore/build/goal\.cc$''
|
||||
''^subprojects/libstore/build/goal\.hh$''
|
||||
''^subprojects/libstore/unix/build/hook-instance\.cc$''
|
||||
''^subprojects/libstore/unix/build/local-derivation-goal\.cc$''
|
||||
''^subprojects/libstore/unix/build/local-derivation-goal\.hh$''
|
||||
''^subprojects/libstore/build/substitution-goal\.cc$''
|
||||
''^subprojects/libstore/build/substitution-goal\.hh$''
|
||||
''^subprojects/libstore/build/worker\.cc$''
|
||||
''^subprojects/libstore/build/worker\.hh$''
|
||||
''^subprojects/libstore/builtins/fetchurl\.cc$''
|
||||
''^subprojects/libstore/builtins/unpack-channel\.cc$''
|
||||
''^subprojects/libstore/gc\.cc$''
|
||||
''^subprojects/libstore/local-overlay-store\.cc$''
|
||||
''^subprojects/libstore/local-overlay-store\.hh$''
|
||||
''^subprojects/libstore/local-store\.cc$''
|
||||
''^subprojects/libstore/local-store\.hh$''
|
||||
''^subprojects/libstore/unix/user-lock\.cc$''
|
||||
''^subprojects/libstore/unix/user-lock\.hh$''
|
||||
''^subprojects/libstore/optimise-store\.cc$''
|
||||
''^subprojects/libstore/unix/pathlocks\.cc$''
|
||||
''^subprojects/libstore/posix-fs-canonicalise\.cc$''
|
||||
''^subprojects/libstore/posix-fs-canonicalise\.hh$''
|
||||
''^subprojects/libstore/uds-remote-store\.cc$''
|
||||
''^subprojects/libstore/uds-remote-store\.hh$''
|
||||
''^subprojects/libstore/windows/build\.cc$''
|
||||
''^subprojects/libstore/worker-protocol-impl\.hh$''
|
||||
''^subprojects/libstore/worker-protocol\.cc$''
|
||||
''^subprojects/libstore/worker-protocol\.hh$''
|
||||
''^subprojects/libutil-c/nix_api_util_internal\.h$''
|
||||
''^subprojects/libutil/archive\.cc$''
|
||||
''^subprojects/libutil/archive\.hh$''
|
||||
''^subprojects/libutil/args\.cc$''
|
||||
''^subprojects/libutil/args\.hh$''
|
||||
''^subprojects/libutil/args/root\.hh$''
|
||||
''^subprojects/libutil/callback\.hh$''
|
||||
''^subprojects/libutil/canon-path\.cc$''
|
||||
''^subprojects/libutil/canon-path\.hh$''
|
||||
''^subprojects/libutil/chunked-vector\.hh$''
|
||||
''^subprojects/libutil/closure\.hh$''
|
||||
''^subprojects/libutil/comparator\.hh$''
|
||||
''^subprojects/libutil/compute-levels\.cc$''
|
||||
''^subprojects/libutil/config-impl\.hh$''
|
||||
''^subprojects/libutil/config\.cc$''
|
||||
''^subprojects/libutil/config\.hh$''
|
||||
''^subprojects/libutil/current-process\.cc$''
|
||||
''^subprojects/libutil/current-process\.hh$''
|
||||
''^subprojects/libutil/english\.cc$''
|
||||
''^subprojects/libutil/english\.hh$''
|
||||
''^subprojects/libutil/error\.cc$''
|
||||
''^subprojects/libutil/error\.hh$''
|
||||
''^subprojects/libutil/exit\.hh$''
|
||||
''^subprojects/libutil/experimental-features\.cc$''
|
||||
''^subprojects/libutil/experimental-features\.hh$''
|
||||
''^subprojects/libutil/file-content-address\.cc$''
|
||||
''^subprojects/libutil/file-content-address\.hh$''
|
||||
''^subprojects/libutil/file-descriptor\.cc$''
|
||||
''^subprojects/libutil/file-descriptor\.hh$''
|
||||
''^subprojects/libutil/file-path-impl\.hh$''
|
||||
''^subprojects/libutil/file-path\.hh$''
|
||||
''^subprojects/libutil/file-system\.cc$''
|
||||
''^subprojects/libutil/file-system\.hh$''
|
||||
''^subprojects/libutil/finally\.hh$''
|
||||
''^subprojects/libutil/fmt\.hh$''
|
||||
''^subprojects/libutil/fs-sink\.cc$''
|
||||
''^subprojects/libutil/fs-sink\.hh$''
|
||||
''^subprojects/libutil/git\.cc$''
|
||||
''^subprojects/libutil/git\.hh$''
|
||||
''^subprojects/libutil/hash\.cc$''
|
||||
''^subprojects/libutil/hash\.hh$''
|
||||
''^subprojects/libutil/hilite\.cc$''
|
||||
''^subprojects/libutil/hilite\.hh$''
|
||||
''^subprojects/libutil/source-accessor\.hh$''
|
||||
''^subprojects/libutil/json-impls\.hh$''
|
||||
''^subprojects/libutil/json-utils\.cc$''
|
||||
''^subprojects/libutil/json-utils\.hh$''
|
||||
''^subprojects/libutil/linux/cgroup\.cc$''
|
||||
''^subprojects/libutil/linux/namespaces\.cc$''
|
||||
''^subprojects/libutil/logging\.cc$''
|
||||
''^subprojects/libutil/logging\.hh$''
|
||||
''^subprojects/libutil/lru-cache\.hh$''
|
||||
''^subprojects/libutil/memory-source-accessor\.cc$''
|
||||
''^subprojects/libutil/memory-source-accessor\.hh$''
|
||||
''^subprojects/libutil/pool\.hh$''
|
||||
''^subprojects/libutil/position\.cc$''
|
||||
''^subprojects/libutil/position\.hh$''
|
||||
''^subprojects/libutil/posix-source-accessor\.cc$''
|
||||
''^subprojects/libutil/posix-source-accessor\.hh$''
|
||||
''^subprojects/libutil/processes\.hh$''
|
||||
''^subprojects/libutil/ref\.hh$''
|
||||
''^subprojects/libutil/references\.cc$''
|
||||
''^subprojects/libutil/references\.hh$''
|
||||
''^subprojects/libutil/regex-combinators\.hh$''
|
||||
''^subprojects/libutil/serialise\.cc$''
|
||||
''^subprojects/libutil/serialise\.hh$''
|
||||
''^subprojects/libutil/signals\.hh$''
|
||||
''^subprojects/libutil/signature/local-keys\.cc$''
|
||||
''^subprojects/libutil/signature/local-keys\.hh$''
|
||||
''^subprojects/libutil/signature/signer\.cc$''
|
||||
''^subprojects/libutil/signature/signer\.hh$''
|
||||
''^subprojects/libutil/source-accessor\.cc$''
|
||||
''^subprojects/libutil/source-accessor\.hh$''
|
||||
''^subprojects/libutil/source-path\.cc$''
|
||||
''^subprojects/libutil/source-path\.hh$''
|
||||
''^subprojects/libutil/split\.hh$''
|
||||
''^subprojects/libutil/suggestions\.cc$''
|
||||
''^subprojects/libutil/suggestions\.hh$''
|
||||
''^subprojects/libutil/sync\.hh$''
|
||||
''^subprojects/libutil/terminal\.cc$''
|
||||
''^subprojects/libutil/terminal\.hh$''
|
||||
''^subprojects/libutil/thread-pool\.cc$''
|
||||
''^subprojects/libutil/thread-pool\.hh$''
|
||||
''^subprojects/libutil/topo-sort\.hh$''
|
||||
''^subprojects/libutil/types\.hh$''
|
||||
''^subprojects/libutil/unix/file-descriptor\.cc$''
|
||||
''^subprojects/libutil/unix/file-path\.cc$''
|
||||
''^subprojects/libutil/unix/monitor-fd\.hh$''
|
||||
''^subprojects/libutil/unix/processes\.cc$''
|
||||
''^subprojects/libutil/unix/signals-impl\.hh$''
|
||||
''^subprojects/libutil/unix/signals\.cc$''
|
||||
''^subprojects/libutil/unix-domain-socket\.cc$''
|
||||
''^subprojects/libutil/unix/users\.cc$''
|
||||
''^subprojects/libutil/url-parts\.hh$''
|
||||
''^subprojects/libutil/url\.cc$''
|
||||
''^subprojects/libutil/url\.hh$''
|
||||
''^subprojects/libutil/users\.cc$''
|
||||
''^subprojects/libutil/users\.hh$''
|
||||
''^subprojects/libutil/util\.cc$''
|
||||
''^subprojects/libutil/util\.hh$''
|
||||
''^subprojects/libutil/variant-wrapper\.hh$''
|
||||
''^subprojects/libutil/windows/file-descriptor\.cc$''
|
||||
''^subprojects/libutil/windows/file-path\.cc$''
|
||||
''^subprojects/libutil/windows/processes\.cc$''
|
||||
''^subprojects/libutil/windows/users\.cc$''
|
||||
''^subprojects/libutil/windows/windows-error\.cc$''
|
||||
''^subprojects/libutil/windows/windows-error\.hh$''
|
||||
''^subprojects/libutil/xml-writer\.cc$''
|
||||
''^subprojects/libutil/xml-writer\.hh$''
|
||||
''^subprojects/nix-build/nix-build\.cc$''
|
||||
''^subprojects/nix-channel/nix-channel\.cc$''
|
||||
''^subprojects/nix-collect-garbage/nix-collect-garbage\.cc$''
|
||||
''^subprojects/nix-env/buildenv.nix$''
|
||||
''^subprojects/nix-env/nix-env\.cc$''
|
||||
''^subprojects/nix-env/user-env\.cc$''
|
||||
''^subprojects/nix-env/user-env\.hh$''
|
||||
''^subprojects/nix-instantiate/nix-instantiate\.cc$''
|
||||
''^subprojects/nix-store/dotgraph\.cc$''
|
||||
''^subprojects/nix-store/graphml\.cc$''
|
||||
''^subprojects/nix-store/nix-store\.cc$''
|
||||
''^subprojects/nix/add-to-store\.cc$''
|
||||
''^subprojects/nix/app\.cc$''
|
||||
''^subprojects/nix/build\.cc$''
|
||||
''^subprojects/nix/bundle\.cc$''
|
||||
''^subprojects/nix/cat\.cc$''
|
||||
''^subprojects/nix/config-check\.cc$''
|
||||
''^subprojects/nix/config\.cc$''
|
||||
''^subprojects/nix/copy\.cc$''
|
||||
''^subprojects/nix/derivation-add\.cc$''
|
||||
''^subprojects/nix/derivation-show\.cc$''
|
||||
''^subprojects/nix/derivation\.cc$''
|
||||
''^subprojects/nix/develop\.cc$''
|
||||
''^subprojects/nix/diff-closures\.cc$''
|
||||
''^subprojects/nix/dump-path\.cc$''
|
||||
''^subprojects/nix/edit\.cc$''
|
||||
''^subprojects/nix/eval\.cc$''
|
||||
''^subprojects/nix/flake\.cc$''
|
||||
''^subprojects/nix/fmt\.cc$''
|
||||
''^subprojects/nix/hash\.cc$''
|
||||
''^subprojects/nix/log\.cc$''
|
||||
''^subprojects/nix/ls\.cc$''
|
||||
''^subprojects/nix/main\.cc$''
|
||||
''^subprojects/nix/make-content-addressed\.cc$''
|
||||
''^subprojects/nix/nar\.cc$''
|
||||
''^subprojects/nix/optimise-store\.cc$''
|
||||
''^subprojects/nix/path-from-hash-part\.cc$''
|
||||
''^subprojects/nix/path-info\.cc$''
|
||||
''^subprojects/nix/prefetch\.cc$''
|
||||
''^subprojects/nix/profile\.cc$''
|
||||
''^subprojects/nix/realisation\.cc$''
|
||||
''^subprojects/nix/registry\.cc$''
|
||||
''^subprojects/nix/repl\.cc$''
|
||||
''^subprojects/nix/run\.cc$''
|
||||
''^subprojects/nix/run\.hh$''
|
||||
''^subprojects/nix/search\.cc$''
|
||||
''^subprojects/nix/sigs\.cc$''
|
||||
''^subprojects/nix/store-copy-log\.cc$''
|
||||
''^subprojects/nix/store-delete\.cc$''
|
||||
''^subprojects/nix/store-gc\.cc$''
|
||||
''^subprojects/nix/store-info\.cc$''
|
||||
''^subprojects/nix/store-repair\.cc$''
|
||||
''^subprojects/nix/store\.cc$''
|
||||
''^subprojects/nix/unix/daemon\.cc$''
|
||||
''^subprojects/nix/upgrade-nix\.cc$''
|
||||
''^subprojects/nix/verify\.cc$''
|
||||
''^subprojects/nix/why-depends\.cc$''
|
||||
|
||||
''^tests/functional/plugins/plugintest\.cc''
|
||||
''^tests/functional/test-libstoreconsumer/main\.cc''
|
||||
@@ -500,7 +500,7 @@
|
||||
''^scripts/install-multi-user\.sh$''
|
||||
''^scripts/install-nix-from-closure\.sh$''
|
||||
''^scripts/install-systemd-multi-user\.sh$''
|
||||
''^src/nix/get-env\.sh$''
|
||||
''^subprojects/nix/get-env\.sh$''
|
||||
''^tests/functional/build\.sh$''
|
||||
''^tests/functional/ca/build-dry\.sh$''
|
||||
''^tests/functional/ca/build-with-garbage-path\.sh$''
|
||||
@@ -508,7 +508,7 @@
|
||||
''^tests/functional/ca/concurrent-builds\.sh$''
|
||||
''^tests/functional/ca/eval-store\.sh$''
|
||||
''^tests/functional/ca/gc\.sh$''
|
||||
''^tests/functional/ca/import-derivation\.sh$''
|
||||
''^tests/functional/ca/import-from-derivation\.sh$''
|
||||
''^tests/functional/ca/new-build-cmd\.sh$''
|
||||
''^tests/functional/ca/nix-shell\.sh$''
|
||||
''^tests/functional/ca/post-hook\.sh$''
|
||||
|
||||
@@ -23,6 +23,9 @@ subproject('nix')
|
||||
# Docs
|
||||
subproject('internal-api-docs')
|
||||
subproject('external-api-docs')
|
||||
if not meson.is_cross_build()
|
||||
subproject('nix-manual')
|
||||
endif
|
||||
|
||||
# External C wrapper libraries
|
||||
subproject('libutil-c')
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
# remove file extension.
|
||||
|
||||
test_name=$(echo -n "${test?must be defined by caller (test runner)}" | sed \
|
||||
-e "s|^src/[^/]*-test/data/||" \
|
||||
-e "s|^subprojects/[^/]*-test/data/||" \
|
||||
-e "s|^tests/functional/||" \
|
||||
-e "s|\.sh$||" \
|
||||
)
|
||||
|
||||
+3
-8
@@ -27,7 +27,6 @@
|
||||
, mdbook
|
||||
, mdbook-linkcheck
|
||||
, mercurial
|
||||
, nix-perl-bindings
|
||||
, openssh
|
||||
, openssl
|
||||
, pkg-config
|
||||
@@ -172,7 +171,7 @@ in {
|
||||
./doc
|
||||
./misc
|
||||
./precompiled-headers.h
|
||||
(fileset.difference ./src ./src/perl)
|
||||
(fileset.difference ./subprojects ./subprojects/perl)
|
||||
./COPYING
|
||||
./scripts/local.mk
|
||||
] ++ lib.optionals enableManual [
|
||||
@@ -317,7 +316,7 @@ in {
|
||||
# Work around weird bug where it doesn't think there is a Makefile.
|
||||
installCheckPhase = if (!doBuild && doInstallCheck) then ''
|
||||
runHook preInstallCheck
|
||||
mkdir -p src/nix-channel
|
||||
mkdir -p subprojects/nix-channel
|
||||
make installcheck -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES
|
||||
'' else null;
|
||||
|
||||
@@ -325,7 +324,7 @@ in {
|
||||
# built Nix.
|
||||
preInstallCheck =
|
||||
lib.optionalString (! doBuild) ''
|
||||
mkdir -p src/nix-channel
|
||||
mkdir -p subprojects/nix-channel
|
||||
'';
|
||||
|
||||
separateDebugInfo = !stdenv.hostPlatform.isStatic;
|
||||
@@ -335,10 +334,6 @@ in {
|
||||
|
||||
hardeningDisable = lib.optional stdenv.hostPlatform.isStatic "pie";
|
||||
|
||||
passthru = lib.optionalAttrs (stdenv.buildPlatform.canExecute stdenv.hostPlatform) {
|
||||
perl-bindings = nix-perl-bindings;
|
||||
};
|
||||
|
||||
meta = {
|
||||
platforms = lib.platforms.unix ++ lib.platforms.windows;
|
||||
mainProgram = "nix";
|
||||
|
||||
+17
-16
@@ -30,40 +30,41 @@ in
|
||||
versionSuffix = fineVersionSuffix;
|
||||
};
|
||||
|
||||
nix-util = callPackage ../src/libutil/package.nix { };
|
||||
nix-util-c = callPackage ../src/libutil-c/package.nix { };
|
||||
nix-util = callPackage ../subprojects/libutil/package.nix { };
|
||||
nix-util-c = callPackage ../subprojects/libutil-c/package.nix { };
|
||||
nix-util-test-support = callPackage ../tests/unit/libutil-support/package.nix { };
|
||||
nix-util-tests = callPackage ../tests/unit/libutil/package.nix { };
|
||||
|
||||
nix-store = callPackage ../src/libstore/package.nix { };
|
||||
nix-store-c = callPackage ../src/libstore-c/package.nix { };
|
||||
nix-store = callPackage ../subprojects/libstore/package.nix { };
|
||||
nix-store-c = callPackage ../subprojects/libstore-c/package.nix { };
|
||||
nix-store-test-support = callPackage ../tests/unit/libstore-support/package.nix { };
|
||||
nix-store-tests = callPackage ../tests/unit/libstore/package.nix { };
|
||||
|
||||
nix-fetchers = callPackage ../src/libfetchers/package.nix { };
|
||||
nix-fetchers = callPackage ../subprojects/libfetchers/package.nix { };
|
||||
nix-fetchers-tests = callPackage ../tests/unit/libfetchers/package.nix { };
|
||||
|
||||
nix-expr = callPackage ../src/libexpr/package.nix { };
|
||||
nix-expr-c = callPackage ../src/libexpr-c/package.nix { };
|
||||
nix-expr = callPackage ../subprojects/libexpr/package.nix { };
|
||||
nix-expr-c = callPackage ../subprojects/libexpr-c/package.nix { };
|
||||
nix-expr-test-support = callPackage ../tests/unit/libexpr-support/package.nix { };
|
||||
nix-expr-tests = callPackage ../tests/unit/libexpr/package.nix { };
|
||||
|
||||
nix-flake = callPackage ../src/libflake/package.nix { };
|
||||
nix-flake = callPackage ../subprojects/libflake/package.nix { };
|
||||
nix-flake-tests = callPackage ../tests/unit/libflake/package.nix { };
|
||||
|
||||
nix-main = callPackage ../src/libmain/package.nix { };
|
||||
nix-main-c = callPackage ../src/libmain-c/package.nix { };
|
||||
nix-main = callPackage ../subprojects/libmain/package.nix { };
|
||||
nix-main-c = callPackage ../subprojects/libmain-c/package.nix { };
|
||||
|
||||
nix-cmd = callPackage ../src/libcmd/package.nix { };
|
||||
nix-cmd = callPackage ../subprojects/libcmd/package.nix { };
|
||||
|
||||
nix-cli = callPackage ../src/nix/package.nix { version = fineVersion; };
|
||||
nix-cli = callPackage ../subprojects/nix/package.nix { version = fineVersion; };
|
||||
|
||||
nix-functional-tests = callPackage ../src/nix-functional-tests/package.nix { version = fineVersion; };
|
||||
nix-functional-tests = callPackage ../subprojects/nix-functional-tests/package.nix { version = fineVersion; };
|
||||
|
||||
nix-internal-api-docs = callPackage ../src/internal-api-docs/package.nix { version = fineVersion; };
|
||||
nix-external-api-docs = callPackage ../src/external-api-docs/package.nix { version = fineVersion; };
|
||||
nix-manual = callPackage ../doc/manual/package.nix { version = fineVersion; };
|
||||
nix-internal-api-docs = callPackage ../subprojects/internal-api-docs/package.nix { version = fineVersion; };
|
||||
nix-external-api-docs = callPackage ../subprojects/external-api-docs/package.nix { version = fineVersion; };
|
||||
|
||||
nix-perl-bindings = callPackage ../src/perl/package.nix { };
|
||||
nix-perl-bindings = callPackage ../subprojects/perl/package.nix { };
|
||||
|
||||
# Will replace `nix` once the old build system is gone.
|
||||
nix-ng = callPackage ../packaging/everything.nix { };
|
||||
|
||||
@@ -33,13 +33,14 @@
|
||||
|
||||
nix-functional-tests,
|
||||
|
||||
nix-manual,
|
||||
nix-internal-api-docs,
|
||||
nix-external-api-docs,
|
||||
|
||||
nix-perl-bindings,
|
||||
}:
|
||||
|
||||
(buildEnv rec {
|
||||
(buildEnv {
|
||||
name = "nix-${nix-cli.version}";
|
||||
paths = [
|
||||
nix-util
|
||||
@@ -70,12 +71,15 @@
|
||||
|
||||
nix-cli
|
||||
|
||||
nix-manual
|
||||
nix-internal-api-docs
|
||||
nix-external-api-docs
|
||||
|
||||
] ++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
nix-perl-bindings
|
||||
];
|
||||
|
||||
meta.mainProgram = "nix";
|
||||
}).overrideAttrs (finalAttrs: prevAttrs: {
|
||||
doCheck = true;
|
||||
doInstallCheck = true;
|
||||
@@ -122,8 +126,5 @@
|
||||
nix-main-c
|
||||
;
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs (stdenv.buildPlatform.canExecute stdenv.hostPlatform) {
|
||||
perl-bindings = nix-perl-bindings;
|
||||
};
|
||||
})
|
||||
@@ -146,6 +146,9 @@ in
|
||||
withCoverageChecks = true;
|
||||
};
|
||||
|
||||
# Nix's manual
|
||||
manual = nixpkgsFor.x86_64-linux.native.nixComponents.nix-manual;
|
||||
|
||||
# API docs for Nix's unstable internal C++ interfaces.
|
||||
internal-api-docs = nixpkgsFor.x86_64-linux.native.nixComponents.nix-internal-api-docs;
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# configures `scripts/nix-profile.sh.in` (and copies the original to the build directory).
|
||||
# this is only needed for tests, but running it unconditionally does not hurt enough to care.
|
||||
configure_file(
|
||||
input : 'nix-profile.sh.in',
|
||||
output : 'nix-profile.sh',
|
||||
@@ -8,13 +6,6 @@ configure_file(
|
||||
}
|
||||
)
|
||||
|
||||
# https://github.com/mesonbuild/meson/issues/860
|
||||
configure_file(
|
||||
input : 'nix-profile.sh.in',
|
||||
output : 'nix-profile.sh.in',
|
||||
copy : true,
|
||||
)
|
||||
|
||||
foreach rc : [ '.sh', '.fish', '-daemon.sh', '-daemon.fish' ]
|
||||
configure_file(
|
||||
input : 'nix-profile' + rc + '.in',
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# This file is tested by tests/installer/default.nix.
|
||||
if [ -n "$HOME" ] && [ -n "$USER" ]; then
|
||||
if [ -n "${HOME-}" ] && [ -n "${USER-}" ]; then
|
||||
|
||||
# Set up the per-user profile.
|
||||
|
||||
if [ -n "$NIX_STATE_HOME" ]; then
|
||||
if [ -n "${NIX_STATE_HOME-}" ]; then
|
||||
NIX_LINK="$NIX_STATE_HOME/profile"
|
||||
else
|
||||
NIX_LINK="$HOME/.nix-profile"
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
#pragma once
|
||||
///@file
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
namespace nix {
|
||||
|
||||
/**
|
||||
* Initialise the Boehm GC, if applicable.
|
||||
*/
|
||||
void initGC();
|
||||
|
||||
/**
|
||||
* Make sure `initGC` has already been called.
|
||||
*/
|
||||
void assertGCInitialized();
|
||||
|
||||
#ifdef HAVE_BOEHMGC
|
||||
/**
|
||||
* The number of GC cycles since initGC().
|
||||
*/
|
||||
size_t getGCCycles();
|
||||
#endif
|
||||
|
||||
} // namespace nix
|
||||
@@ -1 +0,0 @@
|
||||
src
|
||||
@@ -311,7 +311,7 @@ connected:
|
||||
});
|
||||
|
||||
// See the very large comment in `case WorkerProto::Op::BuildDerivation:` in
|
||||
// `src/libstore/daemon.cc` that explains the trust model here.
|
||||
// `subprojects/libstore/daemon.cc` that explains the trust model here.
|
||||
//
|
||||
// This condition mirrors that: that code enforces the "rules" outlined there;
|
||||
// we do the best we can given those "rules".
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -38,9 +38,9 @@ GENERATE_LATEX = NO
|
||||
# so they can expand variables despite configure variables.
|
||||
|
||||
INPUT = \
|
||||
@src@/src/libutil-c \
|
||||
@src@/src/libexpr-c \
|
||||
@src@/src/libstore-c \
|
||||
@src@/subprojects/libutil-c \
|
||||
@src@/subprojects/libexpr-c \
|
||||
@src@/subprojects/libstore-c \
|
||||
@src@/doc/external-api/README.md
|
||||
|
||||
FILE_PATTERNS = nix_api_*.h *.md
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -29,7 +29,7 @@ GENERATE_LATEX = NO
|
||||
|
||||
# The INPUT tag is used to specify the files and/or directories that contain
|
||||
# documented source files. You may enter file names like myfile.cpp or
|
||||
# directories like /usr/src/myproject. Separate the files or directories with
|
||||
# directories like /usr/subprojects/myproject. Separate the files or directories with
|
||||
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
|
||||
# Note: If this tag is empty the current directory is searched.
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -127,14 +127,9 @@ ref<EvalState> EvalCommand::getEvalState()
|
||||
{
|
||||
if (!evalState) {
|
||||
evalState =
|
||||
#if HAVE_BOEHMGC
|
||||
std::allocate_shared<EvalState>(
|
||||
traceable_allocator<EvalState>(),
|
||||
#else
|
||||
std::make_shared<EvalState>(
|
||||
#endif
|
||||
lookupPath, getEvalStore(), fetchSettings, evalSettings, getStore())
|
||||
;
|
||||
lookupPath, getEvalStore(), fetchSettings, evalSettings, getStore());
|
||||
|
||||
evalState->repair = repair;
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -88,7 +88,7 @@ MixFlakeOptions::MixFlakeOptions()
|
||||
|
||||
> **DEPRECATED**
|
||||
>
|
||||
> Use [`--no-use-registries`](#opt-no-use-registries) instead.
|
||||
> Use [`--no-use-registries`](@docroot@/command-ref/conf-file.md#conf-use-registries) instead.
|
||||
)",
|
||||
.category = category,
|
||||
.handler = {[&]() {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 800 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user