Age | Commit message (Collapse) | Author |
|
|
|
|
|
Allow fixed-output derivations to depend on (floating) content-addressed ones
|
|
shut up clang warnings
|
|
- Fix some class/struct discrepancies
- Explicit the overloading of `run` in the `Cmd*` classes
- Ignore a warning in the generated lexer
|
|
|
|
|
|
We need the missing path info to communicate the worker's remaining
goals to the progress bar.
|
|
|
|
|
|
Fix an overlook of https://github.com/NixOS/nix/pull/4056
|
|
|
|
preallocateContents option: disable by default
|
|
using fallocate() to preallocate files space does more harm than good:
- breaks compression on btrfs
- has been called "not the right thing to do" by xfs developers
(because delayed allocation that most filesystems implement leads to smarter
allocation than what the filesystem needs to do if we upfront fallocate files)
|
|
|
|
|
|
|
|
|
|
Fix macOS sandbox build
|
|
fetchMercurial: set HGPLAIN when invoking hg
|
|
Since c4c3c15c19bc448a4797e5d9577539cc14890618 (#4251) building Nix for
macOS with sandboxing fails:
```
getting status of /nix/var/nix/profiles/per-user/root/channels/nixpkgs: Operation not permitted
```
This happens, because `EvalSettings::getDefaultNixPath` tries to access
paths outside the sandbox. Since the state-dir is not required for
doc generation, it is set to the dummy folder. This needs to be done
for all nix invocations during doc generation, as
`EvalSettings::getDefaultNixPath` is called unconditionally.
|
|
Without setting HGPLAIN, the user's environment leaks into
hg invocations, which means that the output may not be in the
expected format.
HGPLAIN is the Mercurial-recommended solution for this in that
it's intended for uses by scripts and programs which are looking
to parse Mercurial's output in a consistent manner.
|
|
Skip Reference Check on bundler
|
|
|
|
Return derivation signatures in Perl bindings
|
|
installer: simplify the per-build installation
|
|
|
|
The goal is to allow the installation and testing of arbitrary Nix
versions. Extend the base installer to accept a `--tarball-url-prefix
<url>` to change where the Nix tarball is getting downloaded from.
Once this is merged it should allow to:
1. Pick an evaluation at https://hydra.nixos.org/jobset/nix/master that
looks healthy
2. Select the installedScript build and find the store path.
Now equipped with all of this, use an instance of nar-serve to fetch the
install script and release tarballs:
curl -sfL https://nar-serve.numtide.com/nix/store/rkv4yh7pym941bhj0849zqdkg2546bdv-installer-script/install \
| sh --tarball-url-prefix https://nar-serve.numtide.com/nix/store
Or with cachix, strip the /nix/store and derivation name and then:
curl -sfL https://mycache.cachix.org/serve/rkv4yh7pym941bhj0849zqdkg2546bdv/install \
| sh --tarball-url-prefix https://mycache.cachix.org/serve
Fixes #4047
|
|
|
|
context is not valid
Fixes #4236.
|
|
Fixes #4241.
|
|
Make drv hash modulo memo table thread-safe
|
|
Let's get one step closer to the daemon not needing to fork.
|
|
fix typo in comment in fetchurl.nix
|
|
|
|
Fix iterating over $NIX_PROFILES in Zsh
|
|
Allow nix.conf options to be set in flake.nix
|
|
This was causing a failure on macOS.
https://hydra.nixos.org/build/130354318
|
|
This test no longer works on Hydra because import-from-derivation is
no longer allowed.
|
|
Print built derivations as json for build
|
|
Allow substituting paths when building remotely using `ssh-ng://`
|
|
|
|
Fixes #4235.
|
|
Make the sql debug statements more useful
|
|
Print the expanded sql query (with the variables bound to their value) rather
than the original one in case of error
|
|
|
|
Fix deadlock in nix-store when max-connections=1
|
|
Issue 4197 nix build output order
|
|
This fixes a bug I encountered where `nix-store -qR` will deadlock when
the `--include-outputs` flag is passed and `max-connections=1`.
The deadlock occurs because `RemoteStore::queryDerivationOutputs` takes
the only connection from the connection pool and uses it to check the
daemon version. If the version is new enough, it calls
`Store::queryDerivationOutputs`, which eventually calls
`RemoteStore::queryPartialDerivationOutputMap`, where we take another
connection from the connection pool to check the version again. Because
we still haven't released the connection from the caller, this waits for
a connection to be available, causing a deadlock.
This diff solves the issue by using `getProtocol` to check the protocol
version in the caller `RemoteStore::queryDerivationOutputs`, which
immediately frees the connection back to the pool before returning the
protocol version. That way we've already freed the connection by the
time we call `RemoteStore::queryPartialDerivationOutputMap`.
|
|
|