Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
1d28d61
config: add included files into parsedContents before applying
bouk Oct 25, 2023
e97ac09
Factor out `StoreDirConfig`
Ericson2314 Jan 6, 2023
dde1d86
Restrict some code to `StoreDirConfig`
Ericson2314 Mar 18, 2022
e4cbdd2
Add TODO comment for include try/catch
bouk Nov 13, 2023
d6898cd
Move applyConfigFile to lambda inside libstore
bouk Nov 13, 2023
4e790ef
Use boost::container::small_vector in place of VLAs
roberth Nov 20, 2023
20cd5eb
nix repl: Only hide the progress bar while waiting for user input
alois31 Nov 27, 2023
f300e11
Rename `nix show-config` to `nix config show`
Nov 27, 2023
6d16058
Rename `nix doctor` to `nix config check`
Nov 27, 2023
a8fea5a
Merge pull request #9477 from tweag/nix-config-show
thufschmitt Nov 28, 2023
52e0911
Use `buildprefix` in a few more places
Ericson2314 Nov 25, 2023
02bd821
fix: `nlohmann::adl_serializer` for `std::optional` (#9147)
alex-ameen Nov 30, 2023
a7115a4
Improve ACL clearing support (fixing FreeBSD build)
Ericson2314 Nov 30, 2023
d536c57
Docs build: depend on locally built nix executable and not installed one
fedepell Aug 17, 2021
ca72e3e
Merge pull request #5145 from fedepell/local_doc_build_5140
Ericson2314 Nov 30, 2023
743232b
Don’t use `execvp` when we know the path
sellout Nov 30, 2023
eac0a62
Merge pull request #9491 from obsidiansystems/fix-freebsd
edolstra Nov 30, 2023
b6a3fde
Merge pull request #9465 from obsidiansystems/build-dir
edolstra Nov 30, 2023
cb7f258
Merge pull request #9430 from hercules-ci/remove-vlas
edolstra Nov 30, 2023
f99e468
Avoid `<name>/<name>` in documentation URLs
Ericson2314 Nov 27, 2023
3bebaef
Merge pull request #9476 from alois31/restore-progress-bar
edolstra Nov 30, 2023
3d46fa8
Merge pull request #9489 from NixOS/doc-url
thufschmitt Nov 30, 2023
44d21f6
keep generated documentation in a separate directory
fricklerhandwerk Nov 30, 2023
7cc2aa7
Merge pull request #9500 from fricklerhandwerk/generated-docs
Ericson2314 Nov 30, 2023
d5ffc94
use lookup paths in helper expressions consistently
fricklerhandwerk Nov 30, 2023
2fe7e00
Merge pull request #9502 from fricklerhandwerk/internal-lookup-paths
Ericson2314 Nov 30, 2023
cab4102
mention renaming of `nix doctor`
fricklerhandwerk Nov 30, 2023
39de819
rename debugging helper environment variable
fricklerhandwerk Oct 9, 2023
0301b8f
reword the experimental feature notice
fricklerhandwerk Nov 30, 2023
02d9cf2
shorten the quick start chapter
fricklerhandwerk Nov 30, 2023
908a011
Revert "Switch from std::regex to boost::regex"
infinisil Nov 30, 2023
4781e7f
Document each store type on its own page
fricklerhandwerk Nov 30, 2023
333ea68
Add boost::regex regression test
infinisil Dec 1, 2023
d5e934f
add redirect to new store page
fricklerhandwerk Dec 1, 2023
188c803
Merge pull request #9508 from infinisil/revert-7762-boost-regex
roberth Dec 1, 2023
82359eb
Merge pull request #9233 from bouk/bouk/apply-config-inner
Ericson2314 Dec 1, 2023
ea2dd16
Use a proper enum rather than a boolean in runProgramInStore
Dec 1, 2023
fcf0981
Merge pull request #6236 from obsidiansystems/store-dir-config
roberth Dec 1, 2023
be1543e
Merge remote-tracking branch 'upstream/master' into lazy-trees
Ericson2314 Dec 1, 2023
653c100
Merge remote-tracking branch 'upstream/master' into lazy-trees
Ericson2314 Dec 1, 2023
dfa219d
Merge pull request #9494 from sellout/nix-run-execv
thufschmitt Dec 1, 2023
ac4d2e7
Merge pull request #9478 from tweag/nix-config-check
Ericson2314 Dec 1, 2023
d59bdbe
Add two missing `#include "nar-info.hh"`
Ericson2314 Dec 1, 2023
77adb55
Merge pull request #9511 from obsidiansystems/add-missing-includes
roberth Dec 1, 2023
91b6833
Move tests to separate directories, and document
Ericson2314 Aug 25, 2023
84fe429
Merge pull request #8886 from obsidiansystems/flatten-tests
roberth Dec 1, 2023
7355a48
flake.lock: Update Nixpkgs to fix static build
Ericson2314 Dec 1, 2023
59c4c82
fix links in stores overview
fricklerhandwerk Dec 1, 2023
24b7817
fix random docs errors
fricklerhandwerk Dec 2, 2023
cd0d4e4
Merge pull request #9524 from fricklerhandwerk/fix-docs-errors
thufschmitt Dec 2, 2023
2e5abc0
tests: avoid a chroot store without sandbox support
wh0 Dec 4, 2023
5910140
Merge pull request #9529 from wh0/patch-1
Ericson2314 Dec 4, 2023
3c310bd
reword description for the `fetch-tree` experimental feature
fricklerhandwerk Nov 14, 2023
5fe2acc
fix up release note
fricklerhandwerk Nov 14, 2023
823512c
Bump zeebe-io/backport-action from 2.1.1 to 2.2.0
dependabot[bot] Dec 4, 2023
c446e52
Bump cachix/install-nix-action from 23 to 24
dependabot[bot] Dec 4, 2023
e6a3cbf
Bump cachix/cachix-action from 12 to 13
dependabot[bot] Dec 4, 2023
e488a43
Bump actions/labeler from 4 to 5
dependabot[bot] Dec 4, 2023
6278e26
Merge pull request #9539 from NixOS/dependabot/github_actions/actions…
edolstra Dec 5, 2023
4931697
Merge pull request #9538 from NixOS/dependabot/github_actions/cachix/…
edolstra Dec 5, 2023
a4b3a63
Merge pull request #9537 from NixOS/dependabot/github_actions/cachix/…
edolstra Dec 5, 2023
2f9bc1e
Merge pull request #9536 from NixOS/dependabot/github_actions/zeebe-i…
edolstra Dec 5, 2023
d54f847
Merge pull request #9520 from fricklerhandwerk/fix-links-stores-overview
edolstra Dec 5, 2023
efc65ef
Merge pull request #9505 from fricklerhandwerk/quick-start
roberth Dec 5, 2023
733333e
Including `config.h` also needs `$(buildprefix)`
Ericson2314 Dec 1, 2023
96fdea3
Merge pull request #9541 from obsidiansystems/config-buildprefix-fix
Ericson2314 Dec 5, 2023
b23273f
Add missing `-pthread` for test support libraries
Ericson2314 Dec 5, 2023
fbc855b
Merge pull request #9542 from NixOS/pthread-fix-netbsd
Ericson2314 Dec 5, 2023
ee8540a
Fix the labeler.yml config file
thufschmitt Dec 6, 2023
7fff625
Improve the error message for “multicommands” commands (#9510)
thufschmitt Dec 6, 2023
34a6997
Merge pull request #9545 from NixOS/update-labeler-config
edolstra Dec 6, 2023
9817788
Merge pull request #9518 from NixOS/fix-static-build
edolstra Dec 6, 2023
3dcb834
Merge pull request #9509 from fricklerhandwerk/add-redirect
edolstra Dec 6, 2023
e7abf60
hash.cc/hash.h: Minor C++ improvements
kolloch Nov 25, 2023
156ea78
CmdHashBase: doc comment
kolloch Nov 25, 2023
6bbd900
nix hash convert: added
kolloch Nov 25, 2023
0c2d5f7
nix hash convert: s/--type/--algo/ + more functional tests
kolloch Nov 28, 2023
5334c9c
HashType: Rename to HashAlgorithm
kolloch Nov 28, 2023
837b889
Further HashType renaming + using mkHashAlgoOptFlag for new conversion
kolloch Nov 28, 2023
fc6f290
Renamed HashFormat::Base32 to HashFormat::Nix32
kolloch Nov 28, 2023
7ff876b
Add deprecation notice for old nix hash conversion subcommands.
kolloch Nov 28, 2023
8afeaf0
Add docs/rl-notes for `nix hash convert` / `builtins.convertHash`
kolloch Nov 28, 2023
d38ec12
Update src/libexpr/primops.cc
kolloch Dec 2, 2023
bbba205
Refactor concurrently added tests to use HashAlgorithm.
kolloch Dec 2, 2023
e9a5365
hash.sh: Make failure tests more tolerant of additional output
kolloch Dec 2, 2023
9a1a3c4
Store.xs: fix references to HashFormat::Nix32
kolloch Dec 3, 2023
82449a4
Merge pull request #9452 from kolloch/feature/nix-hash-convert
tomberek Dec 7, 2023
575902b
Merge remote-tracking branch 'upstream/master' into lazy-trees
Ericson2314 Dec 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 19 additions & 12 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
"documentation":
- doc/manual/*
- src/nix/**/*.md
- changed-files:
- any-glob-to-any-file: "doc/manual/*"
- any-glob-to-any-file: "src/nix/**/*.md"

"store":
- src/libstore/store-api.*
- src/libstore/*-store.*
- changed-files:
- any-glob-to-any-file: "src/libstore/store-api.*"
- any-glob-to-any-file: "src/libstore/*-store.*"

"fetching":
- src/libfetchers/**/*
- changed-files:
- any-glob-to-any-file: "src/libfetchers/**/*"

"repl":
- src/libcmd/repl.*
- src/nix/repl.*
- changed-files:
- any-glob-to-any-file: "src/libcmd/repl.*"
- any-glob-to-any-file: "src/nix/repl.*"

"new-cli":
- src/nix/**/*
- changed-files:
- any-glob-to-any-file: "src/nix/**/*"

"with-tests":
# Unit tests
- src/*/tests/**/*
# Functional and integration tests
- tests/functional/**/*
- changed-files:
# Unit tests
- any-glob-to-any-file: "src/*/tests/**/*"
# Functional and integration tests
- any-glob-to-any-file: "tests/functional/**/*"

2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fetch-depth: 0
- name: Create backport PRs
# should be kept in sync with `version`
uses: zeebe-io/backport-action@v2.1.1
uses: zeebe-io/backport-action@v2.2.0
with:
# Config README: https://github.com/zeebe-io/backport-action#backport-action
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v23
- uses: cachix/install-nix-action@v24
with:
# The sandbox would otherwise be disabled by default on Darwin
extra_nix_config: "sandbox = true"
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV
- uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v13
if: needs.check_secrets.outputs.cachix == 'true'
with:
name: '${{ env.CACHIX_NAME }}'
Expand Down Expand Up @@ -62,10 +62,10 @@ 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@v23
- uses: cachix/install-nix-action@v24
with:
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
- uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v13
with:
name: '${{ env.CACHIX_NAME }}'
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
Expand All @@ -84,7 +84,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@v23
- uses: cachix/install-nix-action@v24
with:
install_url: '${{needs.installer.outputs.installerURL}}'
install_options: "--tarball-url-prefix https://${{ env.CACHIX_NAME }}.cachix.org/serve"
Expand Down Expand Up @@ -114,12 +114,12 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v23
- uses: cachix/install-nix-action@v24
with:
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV
- run: echo NIX_VERSION="$(nix --experimental-features 'nix-command flakes' eval .\#default.version | tr -d \")" >> $GITHUB_ENV
- uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v13
if: needs.check_secrets.outputs.cachix == 'true'
with:
name: '${{ env.CACHIX_NAME }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: false
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ perl/Makefile.config
/doc/manual/xp-features.json
/doc/manual/src/SUMMARY.md
/doc/manual/src/SUMMARY-rl-next.md
/doc/manual/src/store/types/*
!/doc/manual/src/store/types/index.md.in
/doc/manual/src/command-ref/new-cli
/doc/manual/src/command-ref/conf-file.md
/doc/manual/src/command-ref/experimental-features-shortlist.md
Expand All @@ -43,18 +45,18 @@ perl/Makefile.config
/src/libexpr/parser-tab.hh
/src/libexpr/parser-tab.output
/src/libexpr/nix.tbl
/src/libexpr/tests/libnixexpr-tests
/tests/unit/libexpr/libnixexpr-tests

# /src/libstore/
*.gen.*
/src/libstore/tests/libnixstore-tests
/tests/unit/libstore/libnixstore-tests

# /src/libutil/
/src/libutil/tests/libnixutil-tests
/tests/unit/libutil/libnixutil-tests

/src/nix/nix

/src/nix/doc
/src/nix/generated-doc

# /src/nix-env/
/src/nix-env/nix-env
Expand Down
29 changes: 19 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
-include Makefile.config
clean-files += Makefile.config
include mk/build-dir.mk

-include $(buildprefix)Makefile.config
clean-files += $(buildprefix)Makefile.config

ifeq ($(ENABLE_BUILD), yes)
makefiles = \
Expand All @@ -19,17 +21,17 @@ makefiles = \
misc/zsh/local.mk \
misc/systemd/local.mk \
misc/launchd/local.mk \
misc/upstart/local.mk \
doc/manual/local.mk \
doc/internal-api/local.mk
misc/upstart/local.mk
endif

ifeq ($(ENABLE_BUILD)_$(ENABLE_TESTS), yes_yes)
UNIT_TEST_ENV = _NIX_TEST_UNIT_DATA=unit-test-data
makefiles += \
src/libutil/tests/local.mk \
src/libstore/tests/local.mk \
src/libexpr/tests/local.mk
tests/unit/libutil/local.mk \
tests/unit/libutil-support/local.mk \
tests/unit/libstore/local.mk \
tests/unit/libstore-support/local.mk \
tests/unit/libexpr/local.mk \
tests/unit/libexpr-support/local.mk
endif

ifeq ($(ENABLE_TESTS), yes)
Expand All @@ -55,4 +57,11 @@ endif

include mk/lib.mk

GLOBAL_CXXFLAGS += -g -Wall -include config.h -std=c++2a -I src
# Must be included after `mk/lib.mk` so rules refer to variables defined
# by the library. Rules are not "lazy" like variables, unfortunately.
ifeq ($(ENABLE_BUILD), yes)
$(eval $(call include-sub-makefile, doc/manual/local.mk))
$(eval $(call include-sub-makefile, doc/internal-api/local.mk))
endif

GLOBAL_CXXFLAGS += -g -Wall -include $(buildprefix)config.h -std=c++2a -I src
12 changes: 12 additions & 0 deletions boehmgc-traceable_allocator-public.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/include/gc_allocator.h b/include/gc_allocator.h
index 597c7f13..587286be 100644
--- a/include/gc_allocator.h
+++ b/include/gc_allocator.h
@@ -312,6 +312,7 @@ public:

template<>
class traceable_allocator<void> {
+public:
typedef size_t size_type;
typedef ptrdiff_t difference_type;
typedef void* pointer;
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ case "$host_os" in
esac
AC_SUBST(HAVE_SECCOMP, [$have_seccomp])

# Optional dependencies for better normalizing file system data
AC_CHECK_HEADERS[sys/xattr.h]

# Look for aws-cpp-sdk-s3.
AC_LANG_PUSH(C++)
Expand Down
12 changes: 8 additions & 4 deletions doc/internal-api/doxygen.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,21 @@ INPUT = \
src/libcmd \
src/libexpr \
src/libexpr/flake \
src/libexpr/tests \
src/libexpr/tests/value \
tests/unit/libexpr \
tests/unit/libexpr/value \
tests/unit/libexpr/test \
tests/unit/libexpr/test/value \
src/libexpr/value \
src/libfetchers \
src/libmain \
src/libstore \
src/libstore/build \
src/libstore/builtins \
src/libstore/tests \
tests/unit/libstore \
tests/unit/libstore/test \
src/libutil \
src/libutil/tests \
tests/unit/libutil \
tests/unit/libutil/test \
src/nix \
src/nix-env \
src/nix-store
Expand Down
20 changes: 15 additions & 5 deletions doc/manual/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,28 @@
# conventions:
# - always force (<CODE>!) since this allows re-using file names
# - group related paths to ease readability
# - always append new redirects to the end of the file
# - keep in alphabetical/wildcards-last order, which will reduce version control conflicts
# - redirects that should have been there but are missing can be inserted where they belong

/advanced-topics/advanced-topics /advanced-topics 301!

/command-ref/command-ref /command-ref 301!

/contributing/contributing /contributing 301!

/expressions/expression-language /language/ 301!
/expressions/language-values /language/values 301!
/expressions/language-constructs /language/constructs 301!
/expressions/language-operators /language/operators 301!
/expressions/language-values /language/values 301!
/expressions/* /language/:splat 301!

/package-management/basic-package-mgmt /command-ref/nix-env 301!
/installation/installation /installation 301!

/package-management/channels* /command-ref/nix-channel 301!
/package-management/basic-package-mgmt /command-ref/nix-env 301!
/package-management/channels /command-ref/nix-channel 301!
/package-management/package-management /package-management 301!
/package-management/s3-substituter /store/types/s3-binary-cache-store 301!

/package-management/s3-substituter* /command-ref/new-cli/nix3-help-stores#s3-binary-cache-store 301!
/protocols/protocols /protocols 301!

/release-notes/release-notes /release-notes 301!
2 changes: 1 addition & 1 deletion doc/manual/generate-builtin-constants.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let
inherit (builtins) concatStringsSep attrValues mapAttrs;
inherit (import ./utils.nix) optionalString squash;
inherit (import <nix/utils.nix>) optionalString squash;
in

builtinsInfo:
Expand Down
2 changes: 1 addition & 1 deletion doc/manual/generate-builtins.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let
inherit (builtins) concatStringsSep attrValues mapAttrs;
inherit (import ./utils.nix) optionalString squash;
inherit (import <nix/utils.nix>) optionalString squash;
in

builtinsInfo:
Expand Down
Loading