aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-07-08Only store hash of fixed derivation outputMatthew Bauer
we don’t need a full storepath for a fixedoutput derivation. So just putting the ingestion method + the hash is sufficient.
2020-07-08CleanupEelco Dolstra
2020-07-08Make LocalStore::addToStore(srcPath) run in constant memoryEelco Dolstra
This reduces memory consumption of nix-instantiate \ -E 'with import <nixpkgs> {}; runCommand "foo" { src = ./blender; } "echo foo"' \ --option nar-buffer-size 10000 (where ./blender is a 1.1 GiB tree) from 1716 to 36 MiB, while still ensuring that we don't do any write I/O for small source paths (up to 'nar-buffer-size' bytes). The downside is that large paths are now always written to a temporary location in the store, even if they produce an already valid store path. Thus, adding large paths might be slower and run out of disk space. ¯\_(ツ)_/¯ Of course, you can always restore the old behaviour by setting 'nar-buffer-size' to a very high value.
2020-07-08Add name to BasicDerivationMatthew Bauer
We always have a name for BasicDerivation, since we have a derivation store path that has a name.
2020-07-08Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2020-07-08Fix 'got unknown message type 1 from Nix daemon'Eelco Dolstra
Example: $ nix-build -E 'with import <nixpkgs> {}; runCommand "foo" { x = runCommand "bar" {} "exit 1"; } "echo foo; exit 1"' warning: unknown setting 'auto-allocate-uids' these 2 derivations will be built: /nix/store/v4fbdbhcdi949929a67g8farwf72zgam-bar.drv /nix/store/k4fsvrjl7cp2xpz7927iv7g0dqj1zyhs-foo.drv warning: unknown setting 'auto-allocate-uids' building '/nix/store/v4fbdbhcdi949929a67g8farwf72zgam-bar.drv'... error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------- nix-daemon builder for '/nix/store/v4fbdbhcdi949929a67g8farwf72zgam-bar.drv' failed with exit code 1 error: --- Error ------------------------------------------------------------------------------------------------------------------------------------------------------------------ nix-build got unknown message type 1 from Nix daemon
2020-07-07Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2020-07-07Fix coverage buildEelco Dolstra
2020-07-07exportReferencesGraph: Fix support for non-top-level store pathsEelco Dolstra
Fixes #3471.
2020-07-06bumpBen Burdette
2020-07-06revamp trace code and testBen Burdette
2020-07-06nix develop: Support derivations with multiple outputsEelco Dolstra
2020-07-06nix develop: Fall back to "bash" if nixpkgs#bashInteractive is unavailableEelco Dolstra
2020-07-06Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2020-07-04spacingBen Burdette
2020-07-03Merge remote-tracking branch 'upstream/master' into add-body-to-network-errorsJohn Ericson
2020-07-03Merge branch 'master' of github.com:NixOS/nix into hash-always-has-typeJohn Ericson
2020-07-03Merge branch 'master' into add-traceBen Burdette
2020-07-03nix develop: Fix bad regexEelco Dolstra
This was accepted by libstdc++ but not libc++. https://hydra.nixos.org/build/123569154
2020-07-03Shut up a clang warningEelco Dolstra
2020-07-03Shorten the path to the test rootregnat
Fix a socket length failure on the OSX builders
2020-07-02Fix Narinfo corruption detection bugJohn Ericson
The aim of this check was just to ensure each key occurs once.
2020-07-02Fix abort in 'nix develop'Eelco Dolstra
2020-07-02spacingBen Burdette
2020-07-02move showTrace to new loggerSettingsBen Burdette
2020-07-02assert for invalid fileoriginBen Burdette
2020-07-01spacingBen Burdette
2020-07-01Don't process an option if any of its arguments need completionEelco Dolstra
2020-07-01Add --inputs-from to use flake inputs as registry entriesEelco Dolstra
This allows you to refer to an input from another flake. For example, $ nix run --inputs-from /path/to/hydra nixpkgs#hello runs 'hello' from the 'nixpkgs' inputs of the 'hydra' flake. Fixes #3769.
2020-07-01if no errLoc, no Loc.Ben Burdette
2020-07-01don't include errpos for addErrorContextBen Burdette
2020-07-01non-pos trace testBen Burdette
2020-07-01CleanupEelco Dolstra
2020-07-01Merge branch 'remote-query-outputs' of https://github.com/tweag/nixEelco Dolstra
2020-07-01Support building flakes from a shallow Git repoEelco Dolstra
Fixes #3756.
2020-06-30fix tests with the 'from string' changeBen Burdette
2020-06-30comments and cleanupBen Burdette
2020-06-30double addtrace for 'called from'Ben Burdette
2020-06-30Merge branch 'master' into add-traceBen Burdette
2020-06-30invalid pos checkBen Burdette
2020-06-30check for a null symbolBen Burdette
2020-06-29trace formattingBen Burdette
2020-06-29Add possibly missing `<string>` includeJohn Ericson
2020-06-29NAR parser: Fix missing name field checkEelco Dolstra
Discovered by @Kloenk.
2020-06-29Add unordered_set to globals.cc headerMatthew Bauer
2020-06-29Remove lazy lookup in getHomeMatthew Bauer
this seems to break in Musl/Static with: terminate called after throwing an instance of 'std::bad_function_call' what(): bad_function_call
2020-06-29Rename logging->stdout to logging->stdout_Matthew Bauer
musl doesn't like this identifier
2020-06-29Merge remote-tracking branch 'upstream/master' into hash-always-has-typeJohn Ericson
2020-06-29nix run: Use packages/legacyPackages as fallback if there is no app definitionEelco Dolstra
'nix run' will try to run $out/bin/<name>, where <name> is the derivation name (excluding the version). This often works well: $ nix run nixpkgs#hello Hello, world! $ nix run nix -- --version nix (Nix) 2.4pre20200626_adf2fbb $ nix run patchelf -- --version patchelf 0.11.20200623.e61654b $ nix run nixpkgs#firefox -- --version Mozilla Firefox 77.0.1 $ nix run nixpkgs#gimp -- --version GNU Image Manipulation Program version 2.10.14 though not always: $ nix run nixpkgs#git error: unable to execute '/nix/store/kp7wp760l4gryq9s36x481b2x4rfklcy-git-2.25.4/bin/git-minimal': No such file or directory
2020-06-29EvalCache: Store string contextsEelco Dolstra