John Ericson
63dc8fbbd6
Merge pull request #3532 from domenkozar/darwin-install-idempotent
...
darwin installer: remove the file before installing new one
2023-06-14 19:12:49 +02:00
John Ericson
ff905cb796
Merge pull request #4803 from ShamrockLee/nix-channel-list-generations
...
Add `nix-channel --list-generations`
2023-06-14 18:30:35 +02:00
Domen Kožar
c73daea61e
darwin installer: remove the file before installing new one
...
Otherwise results into:
cp: /Library/LaunchDaemons/org.nixos.nix-daemon.plist and /nix/var/nix/profiles/default/Library/LaunchDaemons/org.nixos.nix-daemon.plist are identical (not copied).
2023-06-14 12:28:01 -04:00
John Ericson
61a3e1f2e2
Merge pull request #4282 from tweag/fix-ca-hash-rewriting
...
fix the hash rewriting for ca-derivations
2023-06-14 18:25:00 +02:00
John Ericson
32147c8c7b
Merge remote-tracking branch 'upstream/master' into overlayfs-store
2023-06-14 10:29:55 -04:00
scarf
bfb5e0bdcd
build: show UID and GID in welcome message
2023-06-14 19:06:04 +09:00
Michal Sojka
c6d7c4f9ec
Document fromTOML, hasContext and getContext builtins
...
Until now, these functions were completely missing in the Nix manual.
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-06-13 21:53:03 +02:00
Eelco Dolstra
7066d21a0d
Merge pull request #8505 from NixOS/dependabot/github_actions/zeebe-io/backport-action-1.3.1
...
Bump zeebe-io/backport-action from 1.3.0 to 1.3.1
2023-06-13 16:20:33 +02:00
Eelco Dolstra
1ad3328c5e
Allow tarball URLs to redirect to a lockable immutable URL
...
Previously, for tarball flakes, we recorded the original URL of the
tarball flake, rather than the URL to which it ultimately
redirects. Thus, a flake URL like
http://example.org/patchelf-latest.tar that redirects to
http://example.org/patchelf- <revision>.tar was not really usable. We
couldn't record the redirected URL, because sites like GitHub redirect
to CDN URLs that we can't rely on to be stable.
So now we use the redirected URL only if the server returns the
`x-nix-is-immutable` or `x-amz-meta-nix-is-immutable` headers in its
response.
2023-06-13 14:17:45 +02:00
Eelco Dolstra
3402b650cd
Add a generic check for rev attribute mismatches
2023-06-13 14:13:50 +02:00
David McFarland
d5e1eb20a2
Pass common ssh options in isMasterRunning
2023-06-13 00:55:34 -03:00
David McFarland
5454fdcceb
Add test of explicit ssh control path in nix-copy test
...
This highlights a problem caused by SSHMaster::isMasterRunning returning
false when NIX_SSHOPTS contains -oControlPath.
2023-06-13 00:54:52 -03:00
dependabot[bot]
f961b04484
Bump zeebe-io/backport-action from 1.3.0 to 1.3.1
...
Bumps [zeebe-io/backport-action](https://github.com/zeebe-io/backport-action ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/zeebe-io/backport-action/releases )
- [Commits](https://github.com/zeebe-io/backport-action/compare/v1.3.0...v1.3.1 )
---
updated-dependencies:
- dependency-name: zeebe-io/backport-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 22:56:41 +00:00
Tom Bereknyei
0e3849dc65
test: add test for non-defaulting for stding installable input
2023-06-12 08:40:17 -04:00
Eelco Dolstra
041486b116
Merge pull request #8493 from edolstra/no-md-include
...
Don't include uds-remote-store.md from a header file
2023-06-12 12:19:58 +02:00
Eelco Dolstra
87c66f6b0f
Don't include uds-remote-store.md from a header file
...
Closes #8484 .
2023-06-12 11:10:55 +02:00
Michal Sojka
8ec1ba0210
Register all PrimOps via the Info structure
...
This will allow documenting them (in later commits).
Note that we keep the old constructor even if it is no longer used by
Nix code, because it is used in tests/plugins/plugintest.cc, which
suggests that it might be used by some external plugin.
2023-06-11 21:40:43 +02:00
Tom Bereknyei
08089fdd32
fix: Do not apply default installables when using --stdin
2023-06-11 13:33:38 -04:00
Jörg Thalheim
c51f3f1eb2
nix actually needs c++20 now
2023-06-10 13:56:05 +02:00
Eelco Dolstra
e54538c461
restoreMountNamespace(): Restore the original root directory
...
This is necessary when we're in a chroot environment, where the
process root is not the same as the root of the mount namespace
(e.g. in nixos-enter).
Fixes #7602 .
2023-06-09 16:09:29 +02:00
John Ericson
03f9ff6ea5
Merge pull request #8168 from angerman/angerman/mac-fix-recursive-nix
...
macOS: fix recursive nix
2023-06-09 13:40:44 +02:00
Eelco Dolstra
381a32981b
Merge branch 'master' into angerman/mac-fix-recursive-nix
2023-06-09 13:06:47 +02:00
Andrea Bedini
3c78920f73
Parse TOML timestamps ( #8120 )
...
Currently `fromTOML` throws an exception when encountering a timestamp
since the Nix language lacks a way to represent them.
This patch changes this beaviour and makes `fromTOML` parse timestamps as
attrsets of the format
{ _type = "timestamp"; value = "1979-05-27T07:32:00Z"; }
This is guarded by an experimental feature flag to leave room for iterating on the representation.
2023-06-09 11:53:18 +02:00
Valentin Gagarin
db680e0e57
refine wording on the purpose of the Nix language
...
packages and configurations are not really a concept in Nix or the Nix language. the idea of transforming files into other files clearly captures what it's all about, and the new phrasing should make the term "derivation" more obvious both in terms of meaning and origin.
2023-06-08 02:00:05 +02:00
Eelco Dolstra
bf7dc3c7dc
Merge pull request #8463 from edolstra/release-artifacts
...
Upload manual + fallback-paths.nix in the release script
2023-06-06 16:21:06 +02:00
Eelco Dolstra
76e032bcf8
Upload the manual to releases.nixos.org
...
Fixes #8451 .
2023-06-06 15:37:26 +02:00
Eelco Dolstra
d14f993a76
Fix MIME type
2023-06-06 14:03:24 +02:00
Eelco Dolstra
42e908a308
Upload fallback-paths.nix as part of the release
...
https://github.com/NixOS/nixpkgs/pull/235463
2023-06-06 13:56:43 +02:00
Eelco Dolstra
2b01e835e2
Merge pull request #8429 from svenz/master
...
Update install-multi-user.sh
2023-06-06 13:34:45 +02:00
Ben Radford
ee1241da86
Remove unnecessary overrides of add methods.
2023-06-06 12:21:17 +01:00
Ben Radford
8a9baa0a30
More sensible to have deleteGCPath in LocalStore.
2023-06-06 12:21:17 +01:00
Ben Radford
a48acfd684
Skip deletion of lower paths for overlay store GC.
2023-06-06 12:21:17 +01:00
Ben Radford
98edbb9686
Factor out GC path deletion so it can be overridden.
2023-06-06 12:21:17 +01:00
Eelco Dolstra
b56319a139
Merge pull request #8391 from aneeshusa/remove-wrong-default-value-in-docs-for-hashed-mirrors
...
Remove old default from docs for `hashed-mirrors`
2023-06-06 12:54:28 +02:00
Eelco Dolstra
864ab1a7ac
Merge pull request #8438 from zhaofengli/armv5tel-linux32
...
Also set the PER_LINUX32 personality flag on armv5tel-linux
2023-06-06 12:47:16 +02:00
Eelco Dolstra
51b3576855
Merge pull request #8456 from emilytrau/include-select
...
Add missing <sys/select.h> include
2023-06-06 12:45:51 +02:00
Ben Radford
b852bdb3f8
Merge branch 'read-only-local-store' into overlayfs-store
2023-06-06 11:09:26 +01:00
Ben Radford
c47f744e05
Also skip makeStoreWritable when read-only=true.
2023-06-06 11:07:55 +01:00
Ben Radford
e484278e9b
Merge branch 'master' into read-only-local-store
2023-06-06 11:07:36 +01:00
Eelco Dolstra
f5ab40c6e3
Merge pull request #8452 from edolstra/fix-relative-symlinks
...
SourcePath::resolveSymlinks(): Fix handling of symlinks that start with '..'
2023-06-06 12:06:23 +02:00
Eelco Dolstra
f5c6b29940
Fix SourcePath::resolveSymlinks()
...
This fixes handling of symlinks that start with '..', and symlink
targets that contain symlinks themselves.
2023-06-06 11:24:10 +02:00
Emily Trau
b37dd43db4
Add missing <sys/select.h> include
...
`select()` may not be ambiently available for use on every platform
2023-06-05 20:18:24 -07:00
Valentin Gagarin
9c6ede85fc
Merge pull request #8448 from figsoda/man
2023-06-05 03:00:10 +02:00
figsoda
b64450ed4e
Fix code block formatting in man page
2023-06-04 14:50:47 -04:00
Alexander Bantyev
a15b2c01c0
Document manual migration for use-xdg-base-directories ( #8044 )
...
* Document manual migration for use-xdg-base-directories
As there's currently no automatic migration for use-xdg-base-directories
option, add instructions for manual migration to the option's
description.
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-06-02 15:38:17 +00:00
Théophane Hufschmitt
527eb4a99a
Merge pull request #8317 from fricklerhandwerk/doc-identifier
...
document identifier syntax for attribute sets
2023-06-02 13:10:27 +02:00
Zhaofeng Li
48632e6139
Also set the PER_LINUX32 personality flag on armv5tel-linux
2023-06-02 03:04:13 -06:00
Théophane Hufschmitt
0101ce0d96
Test nix-channel --list-generations
...
Rough test, but the feature is a fairly trivial addition on top of
`nix-profile --list-generations`, so it should be enough
2023-06-02 10:21:30 +02:00
Théophane Hufschmitt
331f0967c4
Add a release note for nix-channel --list-generations
2023-06-02 10:14:53 +02:00
Shamrock Lee
b292177eec
Add nix-channel --list-generations
...
Add support to --list-generations
as another way to say
nix-env --profile /nix/var/nix/profiles/per-user/$USER/channels --list-generations
the way we did for nix-channel --rollback [generation id]
2023-06-02 10:12:35 +02:00