Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
Make nix/unpack-channel.nix a builtin builder
|
|
Fixes #3246.
|
|
https://hydra.nixos.org/build/107467517
Seems that on i686-linux, gcc and rustc disagree on how to return
1-word structs: gcc has the caller pass a pointer to the result, while
rustc has the callee return the result in a register. Work around this
by using a bare pointer.
|
|
This replaces the '(...)' installable syntax, which is not very
discoverable. The downside is that you can't have multiple expressions
or mix expressions and other installables.
|
|
Also, fetchGit now runs in O(1) memory since we pipe the output of
'git archive' directly into unpackTarball() (rather than first reading
it all into memory).
|
|
|
|
|
|
We can now convert Rust Errors to C++ exceptions. At the Rust->C++ FFI
boundary, Result<T, Error> will cause Error to be converted to and
thrown as a C++ exception.
|
|
|
|
This was the last function using a shell script, so this allows us to
get rid of tar, coreutils, bash etc.
|
|
|
|
|
|
https://hydra.nixos.org/build/107457009
|
|
|
|
Downloader: Log configured CA file
|
|
Fix sandbox fallback settings
|
|
|
|
|
|
Ensure enough space in attrset bindings
|
|
Fixes #3239.
|
|
|
|
E.g.
$ nix-build '<nixpkgs>' -A hello --experimental-features no-url-literals
error: URL literals are disabled, at /nix/store/vsjamkzh15r3c779q2711az826hqgvzr-nixpkgs-20.03pre194957.bef773ed53f/nixpkgs/pkgs/top-level/all-packages.nix:1236:11
Helps with implementing https://github.com/NixOS/rfcs/pull/45.
|
|
dynamic attributes
|
|
This allows it to be set in nix.conf.
|
|
|
|
This allows distinguishing between an empty value and no value.
|
|
|
|
|
|
A corrupt entry in .links prevents adding a fixed version of that file
to the store in any path. The user experience is that corruption
present in the store 'spreads' to new paths added to the store:
(With store optimisation enabled)
1. A file in the store gets corrupted somehow (eg: filesystem bug).
2. The user tries to add a thing to the store which contains a good copy
of the corrupted file.
3. The file being added to the store is hashed, found to match the bad
.links entry, and is replaced by a link to the bad .links entry.
(The .links entry's hash is not verified during add -- this would
impose a substantial performance burden.)
4. The user observes that the thing in the store that is supposed to be
a copy of what they were trying to add is not a correct copy -- some
files have different contents! Running "nix-store --verify
--check-contents --repair" does not fix the problem.
This change makes "nix-store --verify --check-contents --repair" fix
this problem. Bad .links entries are simply removed, allowing future
attempts to insert a good copy of the file to succeed.
|
|
This doesn't work anymore since `packages` was removed from the
`nixpkgs`-fork with flake support[1], now it's only possible to refer to
pkgs via `legacyPackages`.
[1] https://github.com/edolstra/nixpkgs/commit/49c9b71e4ca98722cecd64ce8d53c1a4b9c46b64
|
|
|
|
Fixes handling of '=' in unquoted strings and escaped characters in
$'...' strings.
|
|
Fix extra semicolons warnings
|
|
Thanks @bhipple for catching!
|
|
|
|
|
|
|
|
|
|
libutil should not depend on libexpr.
|
|
|
|
|
|
|
|
Move environment related code to a separate function. Create a new char** if ignoreEnvironment is set rather than calling clearEnv
|
|
|