- Jun 16, 2020
-
-
Eelco Dolstra authored
On nix-env -qa -f '<nixpkgs>', this reduces maximum RSS by 20970 KiB and runtime by 0.8%. This is mostly because we're not parsing the hash part as a hash anymore (just validating that it consists of base-32 characters). Also, replace storePathToHash() by StorePath::hashPart().
-
Eelco Dolstra authored
Fixes #3618.
-
Domen Kožar authored
Fix master
-
Tobias Pflug authored
-
- Jun 15, 2020
-
-
John Ericson authored
-
Eelco Dolstra authored
E.g. instead of error: --- BuildError ----------------------------------------------- nix builder for '/nix/store/03nk0a3n8h2948k4lqfgnnmym7knkcma-foo.drv' failed with exit code 1 error: --- Error ---------------------------------------------------- nix build of '/nix/store/03nk0a3n8h2948k4lqfgnnmym7knkcma-foo.drv' failed we now get error: --- Error ---------------------------------------------------- nix builder for '/nix/store/03nk0a3n8h2948k4lqfgnnmym7knkcma-foo.drv' failed with exit code 1
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
These are now shown in the progress bar. Closes #3577.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
This means that 'throw Error({ ... ErrorInfo ... })' now works.
-
Eelco Dolstra authored
Use `std::string_view` in a few more places
-
Eelco Dolstra authored
-
- Jun 12, 2020
-
-
John Ericson authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Allow empty hash in derivations
-
Matthew Bauer authored
-
Matthew Bauer authored
This replaces the copy&paste with a helper function in hash.hh.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
This function was used in only one place, where it could easily be replaced by readDerivation() since it's not performance-critical. (This function appears to have been modelled after queryDerivationOutputs(), which exists only to make the garbage collector faster.)
-
Eelco Dolstra authored
Add tests for pool.hh
-
- Jun 11, 2020
-
-
Ben Burdette authored
-
Eelco Dolstra authored
Add an option to print the logs in a machine-readable format
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Jun 10, 2020
-
-
Tobias Pflug authored
-
Eelco Dolstra authored
libutils/hash: remove default encoding
-
Eelco Dolstra authored
Actually test nix-env with a remote store
-
Eelco Dolstra authored
Prelink static libraries into an object file
-
Matthew Bauer authored
This combines the *.o into a big .o producing one translation unit. This preserve our unused static initializers, as specified in the C++ standard: If no variable or function is odr-used from a given translation unit, the non-local variables defined in that translation unit may never be initialized (this models the behavior of an on-demand dynamic library). Note that this is very similar to how the --whole-archive flag works. One advantage of this is that users of the final .a library don’t have to worry about specifying --whole-archive, or that we have unused static initializers at all!
-
- Jun 09, 2020
-
-
Matthew Bauer authored
WSL1 doesn’t support i686-linux emulation, see https://github.com/microsoft/wsl/issues/2468
-
Matthew Bauer authored
fetchTarball, fetchTree, and fetchGit all have *optional* hash attrs. This means that we need to be careful with what we allow to avoid accidentally making these defaults. When ‘hash = ""’ we assume the empty hash is wanted.
-
Matthew Bauer authored
follow up of https://github.com/NixOS/nix/pull/3544 This allows hash="" so that it can be used for debugging purposes. For instance, this gives you an error message like: warning: found empty hash, assuming you wanted 'sha256:0000000000000000000000000000000000000000000000000000' hash mismatch in fixed-output derivation '/nix/store/asx6qw1r1xk6iak6y6jph4n58h4hdmbm-nix': wanted: sha256:0000000000000000000000000000000000000000000000000000 got: sha256:0fpfhipl9v1mfzw2ffmxiyyzqwlkvww22bh9wcy4qrfslb4jm429
-