Age | Commit message (Collapse) | Author |
|
|
|
Simple test to ensure that `nix-build && nix-collect-garbage &&
nix-build -j0` works as it should
|
|
the compressed hash"
|
|
narinfo: Change NAR URLs to be addressed on the NAR hash instead of the compressed hash
|
|
Hopefully this helps to diagnose 'error: unexpected EOF reading a
line' on macOS.
|
|
Improve error formatting
|
|
Make `nix-build --store whatever` work
|
|
|
|
It's now
at /home/eelco/Dev/nixpkgs/pkgs/applications/misc/hello/default.nix:7:7:
instead of
at: (7:7) in file: /home/eelco/Dev/nixpkgs/pkgs/applications/misc/hello/default.nix
The new format is more standard and clickable.
|
|
compressed hash
This change is to simplify [Trustix](https://github.com/tweag/trustix) indexing and makes it possible to reconstruct this URL regardless of the compression used.
In particular this means that https://github.com/tweag/trustix/blob/7c2e9ca597de233846e0b265fb081626ca6c59d8/contrib/nix/nar/nar.go#L61-L71 can be removed and only the bits that are required to establish trust needs to be published in the Trustix build logs.
|
|
Escape filename given to nix-shell in shebang mode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Just a few small things needed fixing!
|
|
Trying to make sure it work with obscurers stores.
|
|
|
|
This makes the statically linked nix binary just work, without needing
any additional files.
|
|
|
|
For each known realisation, store:
- its output
- its output path
This comes with a set of needed changes:
- New `realisations` module declaring the types needed for describing
these mappings
- New `Store::registerDrvOutput` method registering all the needed informations
about a derivation output (also replaces `LocalStore::linkDeriverToPath`)
- new `Store::queryRealisation` method to retrieve the informations for a
derivations
This introcudes some redundancy on the remote-store side between
`wopQueryDerivationOutputMap` and `wopQueryRealisation`.
However we might need to keep both (regardless of backwards compat)
because we sometimes need to get some infos for all the outputs of a
derivation (where `wopQueryDerivationOutputMap` is handy), but all the
stores can't implement it − because listing all the outputs of a
derivation isn't really possible for binary caches where the server
doesn't allow to list a directory.
|
|
Fix the `nix` command with CA derivations
|
|
Prevents a crash because most `nix` subcommands assumed that derivations
know their output path, which isn't the case for CA derivations
|
|
Otherwise https://cache.nixos.org is chosen by default, causing the OSX
testsuite to hang inside the sandbox.
(In a way, this is probably rugging an actual bug under the carpet as
Nix should be able to gracefully timeout in such a case, but that's
beyond mac OSX-fu)
|
|
Regression test for #4245
|
|
This makes it consistent with 'nix hash <path|file>'.
|
|
|
|
|
|
From the 'nix' UX review.
|
|
Properly test the early cutoff for CA derivations
|
|
Build things with a different seed each time to make sure that it works
despite the different drvs
|
|
This is useful for generating the nix manpages, but it may have other
applications (like generating configuration files without a Nix store).
|
|
Allow fixed-output derivations to depend on (floating) content-addressed ones
|
|
Fix an overlook of https://github.com/NixOS/nix/pull/4056
|
|
|
|
|
|
This prevents spaces or other metacharacters from causing nix-shell to
execute the wrong path.
Fixes #4229.
|
|
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.
|
|
This was causing a failure on macOS.
https://hydra.nixos.org/build/130354318
|
|
Print built derivations as json for build
|
|
Fixes #4235.
|
|
|
|
|
|
|
|
Co-authored-by: Théophane Hufschmitt <regnat@users.noreply.github.com>
|
|
|
|
Creates test coverage for #4210 and 7cf874c17d466d5cffdb0eb6215fcfe8930ed757
|