github-actions[bot]
8652ca8fe1
flake.lock: Update
...
Flake lock file updates:
• Updated input 'flake-parts':
'github:hercules-ci/flake-parts/87673d7c13a799d95ce25ff5dc7b9e15f01af2ea' (2023-01-01)
→ 'github:hercules-ci/flake-parts/7930f5b1c356270cec420d4f4cb43f4907206640' (2023-01-05)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/677ed08a50931e38382dbef01cba08a8f7eac8f6' (2022-12-29)
→ 'github:NixOS/nixpkgs/0fc9fca9c8d43edd79d33fea0dd8409d7c4580f4' (2023-01-02)
2023-01-05 01:18:41 +00:00
Eelco Dolstra
6991e558dd
Move macOS sandbox files to sr/libstore/build
2023-01-04 04:50:45 -08:00
Eelco Dolstra
609a7dc059
Include macOS sandbox files in the Nix binary
...
This basically reverts 6e5165b773 .
It fixes errors like
sandbox-exec: <internal init prelude>:292:47: unable to open sandbox-minimal.sb: not found
when trying to run a development Nix installed in a user's home
directory.
Also, we're trying to minimize the number of installed files
to make it possible to deploy Nix as a single statically-linked
binary.
2023-01-04 04:36:07 -08:00
Alexandre Thomas
49e058f1cf
Fix Nix installation on older versions of fish
...
The `fish_add_path` function is only available for fish 3.2.0 or newer,
and not on older versions.
This commit adds an alternative way to update the PATH when
`fish_add_path` does not exist.
2023-01-03 21:14:01 +01:00
Naïm Favier
3c968191f1
move unsafeDiscardReferences out of outputChecks
...
It's not a check.
2023-01-03 18:53:01 +01:00
Eelco Dolstra
d4d1ca8b11
nix --version: Print the data directory
2023-01-03 08:30:49 -08:00
Naïm Favier
15f7fa59be
unsafeDiscardReferences
...
Adds a new boolean structured attribute
`outputChecks.<output>.unsafeDiscardReferences` which disables scanning
an output for runtime references.
__structuredAttrs = true;
outputChecks.out.unsafeDiscardReferences = true;
This is useful when creating filesystem images containing their own embedded Nix
store: they are self-contained blobs of data with no runtime dependencies.
Setting this attribute requires the experimental feature
`discard-references` to be enabled.
2023-01-03 17:19:16 +01:00
Eelco Dolstra
28d5b5cd45
Fix deadlock between auto-GC and addTempRoot()
...
Previously addTempRoot() acquired the LocalStore state lock and waited
for the garbage collector to reply. If the garbage collector is in the
same process (as it the case with auto-GC), this would deadlock as
soon as the garbage collector thread needs the LocalStore state lock.
So now addTempRoot() uses separate Syncs for the state that it
needs. As long at the auto-GC thread doesn't call addTempRoot() (which
it shouldn't), it shouldn't deadlock.
Fixes #3224 .
2023-01-03 15:20:21 +01:00
Eelco Dolstra
224b56f10e
Move creation of the temp roots file into its own function
...
This also moves the file handle into its own Sync object so we're not
holding the _state while acquiring the file lock. There was no real
deadlock risk here since locking a newly created file cannot block,
but it's still a bit nicer.
2023-01-03 14:51:23 +01:00
Valentin Gagarin
9cb1610257
define the terms "realise" and "valid" for store paths
...
add links to the glossary definition where the terms are used
2023-01-03 13:53:53 +01:00
Eelco Dolstra and GitHub
15341334b5
Merge pull request #7516 from NixOS/dependabot/github_actions/zeebe-io/backport-action-1.0.1
...
Bump zeebe-io/backport-action from 0.0.9 to 1.0.1
2023-01-03 12:44:42 +01:00
Eelco Dolstra and GitHub
ae31b5f50f
Merge pull request #7497 from rski/master
...
src/libstore: Print the reason opening the DB failed
2023-01-03 12:44:14 +01:00
Eelco Dolstra and GitHub
a75b7ba30f
Merge pull request #6204 from layus/coerce-string
...
Add context to better locate runtime coercions
2023-01-02 22:35:23 +01:00
Eelco Dolstra
d33d15a48b
Put the --show-trace hint in the logical place
2023-01-02 20:53:58 +01:00
Eelco Dolstra
c548e35498
Don't use state.positions[noPos]
...
This caused traces 'at «none»:0: (source not available)'.
2023-01-02 20:53:58 +01:00
Eelco Dolstra
6b69652385
Merge remote-tracking branch 'origin/master' into coerce-string
2023-01-02 20:53:39 +01:00
Théophane Hufschmitt
8cac451fce
Fix why-depends for CA derivations (again)
...
This has the same goal as b13fd4c58e81b2b2b0d72caa5ce80de861622610,but
achieves it in a different way in order to not break
`nix why-depends --derivation`.
2023-01-02 17:42:22 +01:00
Théophane Hufschmitt
6a90ef072c
Increase the test coverage of why-depends
...
- Test with `--derivation`
- Actually test with ca-derivations (was suuposedly done, but not
activated because of a missing line in `local.mk`)
2023-01-02 16:09:03 +01:00
Théophane Hufschmitt
105d74eb81
Revert "Fix why-depends for CA derivations"
...
This reverts commit b13fd4c58e .
2023-01-02 15:44:04 +01:00
Théophane Hufschmitt and GitHub
9af16c5f74
Merge pull request #5941 from hercules-ci/optimize-intersectAttrs
...
Optimize intersectAttrs performance
2023-01-02 15:22:38 +01:00
Théophane Hufschmitt and GitHub
9c05b80db0
Merge pull request #7426 from tianyuanhao/master
...
Avoid poly_user_note_set twice
2023-01-02 15:15:47 +01:00
Théophane Hufschmitt and GitHub
34a31b33f1
Merge pull request #7278 from fricklerhandwerk/antiquotation
...
antiquotation -> string interpolation
2023-01-02 15:03:45 +01:00
Théophane Hufschmitt and GitHub
a654ae8269
Merge pull request #7066 from fricklerhandwerk/architecture-overview
...
manual: architecture overview
2023-01-02 14:42:01 +01:00
e0c4a95611
antiquotation -> string interpolation
...
as proposed by @mkaito[1] and @tazjin[2] and discussed with @edolstra
and Nix maintainers
[1]: https://github.com/NixOS/nix.dev/pull/267#issuecomment-1270076332
[2]: https://github.com/NixOS/nix.dev/pull/267#issuecomment-1270201979
Co-authored-by: John Ericson <git@JohnEricson.me >
Co-authored-by: Eelco Dolstra <edolstra@gmail.com >
2023-01-02 14:38:57 +01:00
Eelco Dolstra and GitHub
80a0f77e49
Merge pull request #7470 from obsidiansystems/simplify-tests-slightly
...
Make `./mk/run-test.sh` work by itself; add `mk/debug-test.sh`
2023-01-02 14:14:30 +01:00
Théophane Hufschmitt and GitHub
fb8fc6fda6
Merge pull request #7478 from hercules-ci/make-sure-initNix-called
...
libstore: Make sure that initNix has been called
2023-01-02 14:12:49 +01:00
Théophane Hufschmitt and GitHub
226591494a
Merge pull request #7536 from fricklerhandwerk/doc-fixup
...
remove redundant re-definition of store derivations
2023-01-02 14:10:33 +01:00
Valentin Gagarin
9cdf8ededb
remove redundant re-definition of store derivations
2023-01-02 13:37:59 +01:00
Théophane Hufschmitt and GitHub
cfd6c7fc9b
Merge pull request #7485 from fricklerhandwerk/doc-store-derivation
...
define "store derivation"
2023-01-02 13:26:41 +01:00
b56eb217c1
Merge #166
...
166: bors: include garnix in tests r=Mic92 a=Mic92
Co-authored-by: Jörg Thalheim <joerg@thalheim.io >
2023-01-02 10:53:17 +00:00
Jörg Thalheim
a42845708e
add mergify rules for garnix
2023-01-02 11:51:50 +01:00
Jörg Thalheim
be12f80cfa
bors: include garnix in tests
2023-01-02 11:51:50 +01:00
Théophane Hufschmitt and GitHub
e7f2f70750
Merge pull request #7507 from trofi/use-nix-settings-in-tests
...
tests: switch to non-deprecated nix.settings.* module parameters
2023-01-02 11:49:12 +01:00
f2315738db
Merge #165
...
165: switch to flake-parts from flake-utils r=Mic92 a=Mic92
Co-authored-by: Jörg Thalheim <joerg@thalheim.io >
2023-01-02 10:43:31 +00:00
Jörg Thalheim
24db95cbac
ci: also build github actions in staging
2023-01-02 11:42:56 +01:00
Théophane Hufschmitt and GitHub
b3285c7722
Merge pull request #7351 from NaN-git/fix-mkString
...
cleanup eval.hh/eval.cc
2023-01-02 11:41:52 +01:00
Jörg Thalheim
d2c00b8c84
fix build of devShell
2023-01-02 11:39:34 +01:00
Jörg Thalheim
01369215dc
bors: update toml
2023-01-02 11:35:29 +01:00
Jörg Thalheim
0d5f97d617
switch to garnix
2023-01-02 11:35:29 +01:00
Jörg Thalheim
9d1abc0bc8
switch to flake-parts from flake-utils
2023-01-02 11:24:46 +01:00
mergify[bot] and GitHub
53c5b9bb33
Merge pull request #164 from nix-community/update_flake_lock_action
...
flake.lock: Update
2023-01-02 10:15:24 +00:00
github-actions[bot]
c1a77354cb
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/1eb875e811dd59e21e77f6337f2c1592889b48b3' (2022-12-26)
→ 'github:NixOS/nixpkgs/677ed08a50931e38382dbef01cba08a8f7eac8f6' (2022-12-29)
2023-01-02 10:10:54 +00:00
Jörg Thalheim
e6392759be
ci/update-flake-lock: provide access to github token
2023-01-02 11:10:09 +01:00
Théophane Hufschmitt and GitHub
e8a3e58171
Merge pull request #7521 from ncfavier/migration-deadlock
...
Release shared lock before acquiring exclusive lock
2023-01-02 11:08:43 +01:00
Jörg Thalheim and GitHub
4b9af9b778
Merge pull request #163 from tomberek/check_outputs
...
fix: catch errors for invalid derivations
2023-01-02 07:34:39 +00:00
Tom Bereknyei and Jörg Thalheim
7110a1a6c7
fix: catch errors for invalid derivations
2023-01-02 08:06:06 +01:00
Théophane Hufschmitt and GitHub
dd115c0319
Merge pull request #7531 from steshaw/fix-error-message
...
Fix typo in error message
2023-01-02 07:57:46 +01:00
Théophane Hufschmitt and GitHub
720c17f89d
Merge pull request #7476 from trofi/allow-external-CXXFLAGS
...
configure.ac: don't clobber CFLAGS=/CXXFLAGS= and allow users to pass…
2023-01-02 07:37:02 +01:00
Steven Shaw
84b0893725
Fix error message
2023-01-01 12:37:43 +10:00
Eelco Dolstra and GitHub
8c52f8ea9d
Merge pull request #7524 from ncfavier/sandbox-paths-closure
...
doc: sandbox-paths computes closures
2022-12-29 19:45:51 +01:00