aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-08-18env to bindingsBen Burdette
2021-08-18more error fixesBen Burdette
2021-08-18switch to fakeenvsBen Burdette
2021-08-17moving towards env in exceptionsBen Burdette
2021-08-09trying env args; but unecessary?Ben Burdette
2021-08-06move valmap to hh; add to envBen Burdette
2021-06-11hintfmt for eye searing varnamesBen Burdette
2021-06-11mapEnvBindingsBen Burdette
2021-06-09remove dead codeBen Burdette
2021-06-08formatting; string arg for throwTypeErrorBen Burdette
2021-06-08line endingsBen Burdette
2021-06-08highlight the extra varsBen Burdette
2021-06-08another throwTypeError formBen Burdette
2021-05-14showType(fun)Ben Burdette
2021-05-14clean up w LocalNoInline macroBen Burdette
2021-05-14throwAssertionError, throwUndefinedError -> valmap-izedBen Burdette
2021-05-14throwEvalError form 4Ben Burdette
2021-05-14throwEvalError form 3Ben Burdette
2021-05-14throwEvalError form 2Ben Burdette
2021-05-13throwEvalError; mapBindingsBen Burdette
2021-05-12plain env pointerBen Burdette
2021-05-12unique_ptr for valmapBen Burdette
2021-05-11map1/2 for stack usageBen Burdette
2021-05-10throwTypeError with debugger/envBen Burdette
2021-05-03debugger on autoCallFunction errorBen Burdette
2021-04-28move repl.cc to libcmd for linkageBen Burdette
2021-04-28fixesBen Burdette
2021-04-27Merge branch 'master' into debugger-mergeBen Burdette
2021-04-27Merge pull request #4751 from Ma27/storepath-posDomen Kožar
primops/storePath: add trace to pure mode error
2021-04-27primops/storePath: add trace to pure mode errorMaximilian Bosch
As described in #4745 it's otherwise fairly hard to understand where this is coming from. Say you have an expression which uses e.g. `types.package`: ``` nix { outputs = { self, nixpkgs }: { packages.x86_64-linux.hello = let foo = nixpkgs.lib.evalModules { modules = [ { options.foo.bar = with nixpkgs.lib; mkOption { type = types.package; }; } { foo.bar = ./.; } ]; }; in builtins.trace foo.config.foo.bar.outPath nixpkgs.legacyPackages.x86_64-linux.hello; defaultPackage.x86_64-linux = self.packages.x86_64-linux.hello; }; } ``` Then you'll get an error trace like this: ``` error: 'builtins.storePath' is not allowed in pure evaluation mode at /nix/store/p4h2x6r80njkb0j2rc1xjhhl99yri3zb-source/lib/attrsets.nix:328:15: 327| let 328| path' = builtins.storePath path; | ^ 329| res = … while evaluating the attribute 'config.foo.bar.outPath' at /nix/store/p4h2x6r80njkb0j2rc1xjhhl99yri3zb-source/lib/attrsets.nix:332:11: 331| name = sanitizeDerivationName (builtins.substring 33 (-1) (baseNameOf path')); 332| outPath = path'; | ^ 333| outputs = [ "out" ]; … while evaluating the attribute 'packages.x86_64-linux.hello' at /nix/store/6c1rfsqzrhjw1235palzjmf5vihcpci7-source/flake.nix:3:5: 2| { outputs = { self, nixpkgs }: { 3| packages.x86_64-linux.hello = let | ^ 4| foo = nixpkgs.lib.evalModules { ``` Fixes #4745
2021-04-23Merge branch 'remove-trailing-spaces' of github.com:NixOS/nixEelco Dolstra
2021-04-23Replace the trailing markdown spaces by a backslashregnat
They are equivalent according to <https://spec.commonmark.org/0.29/#hard-line-breaks>, and the trailing spaces tend to be a pain (because the make git complain, editors tend to want to remove them − the `.editorconfig` actually specifies that − etc..).
2021-04-23Merge pull request #4732 from NixOS/4725-always-register-the-realisationsEelco Dolstra
Aways register the realisations
2021-04-23Merge pull request #4735 from NixOS/document-ca-derivationsEelco Dolstra
(briefly) document how to build ca derivations
2021-04-23Use lowdown 0.8.4Eelco Dolstra
2021-04-23Set more man sectionsEelco Dolstra
2021-04-23Merge branch 'man1' of https://github.com/alyssais/nixEelco Dolstra
2021-04-23doc: fix section in nix3 man page metadataAlyssa Ross
These man pages said they were in section 7, even though we were installing them to section 1 (which is the right place for them).
2021-04-23Merge pull request #4440 from Ma27/misc-pos-fixesEelco Dolstra
Miscellaneous improvements for positioning in eval-errors
2021-04-23(briefly) document how to build ca derivationsregnat
2021-04-23Revert "Make `nix shell` fallback to static outputs when needed"regnat
This reverts commit 8d66f5f1107fe87f70ea24ade045720235cc31fa. This fix isn't needed anymore now that the realisations are always properly registered
2021-04-23fixup! Add a regression test for #4725regnat
2021-04-22Always register the realisations of input-addressed drvsregnat
Fix #4725
2021-04-22Add a regression test for #4725regnat
2021-04-22Merge branch 'master' of github.com:NixOS/nixEelco Dolstra
2021-04-22Merge branch 'nix-derivation-query-store-path' of ↵Eelco Dolstra
https://github.com/matthewbauer/nix
2021-04-22Merge pull request #4724 from NixOS/nix-shell-missing-outputsEelco Dolstra
Make `nix shell` fallback to static outputs when needed
2021-04-22Remove makeDecompressionSource()Eelco Dolstra
This function doesn't support all compression methods (i.e. 'none' and 'br') so it shouldn't be exposed. Also restore the original decompress() as a wrapper around makeDecompressionSink().
2021-04-22Merge branch 's3-decompress' of https://github.com/lukegb/nixEelco Dolstra
2021-04-22Merge pull request #4729 from alarsyo/fix-flake-doc-typoEelco Dolstra
Fix typo in flake doc