Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-05-16 | Call lockFlake once and store in _lockedFlake | Matthew Kenigsberg | |
2020-05-16 | use flake's nixpkgs to find bashInteractive | Matthew Kenigsberg | |
2020-05-16 | use nixpkgs#bashInteractive for dev-shell | Matthew Kenigsberg | |
2020-05-15 | Move registry-related commands from 'nix flake' to 'nix registry' | Eelco Dolstra | |
This makes 'nix flake' less cluttered and more consistent (it's only subcommands that operator on a flake). Also, the registry is not inherently flake-related (e.g. fetchTree could also use it to remap inputs). | |||
2020-05-12 | Merge pull request #3587 from NixOS/bash-completion | Eelco Dolstra | |
Generic shell completion support for the 'nix' command | |||
2020-05-12 | Fix InstallableCommand | Eelco Dolstra | |
2020-05-11 | nix flake: Add completion support | Eelco Dolstra | |
2020-05-11 | When completing flakerefs, only return directories | Eelco Dolstra | |
2020-05-11 | Add completion for installables | Eelco Dolstra | |
This completes flakerefs using the registry (e.g. 'nix<TAB>' => 'nix nixpkgs') and flake output attributes by evaluating the flake (e.g. 'dwarffs#nix<TAB>' => 'dwarffs#nixosModules'). | |||
2020-05-11 | Cleanup | Eelco Dolstra | |
2020-05-10 | Add completion for paths | Eelco Dolstra | |
2020-05-10 | nix: Implement basic bash completion | Eelco Dolstra | |
2020-05-09 | Reorder to build | Matthew Kenigsberg | |
This reverts commit 883948d7a0add742ccae58e9845d769a8064371c. | |||
2020-05-09 | Refactor installables | Matthew Kenigsberg | |
InstallableValue has children InstallableFlake and InstallableAttrPath, but InstallableFlake was overriding toDerivations, and usage was changed so that InstallableFlake didn't need cmd. So these changes were made: InstallableValue::toDerivations() -> InstalllableAttrPath::toDerivations() InstallableValue::cmd -> InstallableAttrPath::cmd InstallableValue uses state instead of cmd toBuildables() and toDerivations() were made abstract | |||
2020-05-09 | InstallableExpr unused | Matthew Kenigsberg | |
2020-05-07 | Update src/nix/search.cc | Eelco Dolstra | |
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com> | |||
2020-05-06 | Remove the nixpkgs.<attr> compatibility hack | Eelco Dolstra | |
Since we've changed a lot of things in the 'nix' command (e.g. rename 'nix run') there is not much point in keeping this around. | |||
2020-05-06 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-05-06 | Merge pull request #3546 from guibou/nix_readfile_on_0_sized_files | Eelco Dolstra | |
builtins.readFile: do not truncate content | |||
2020-05-06 | Merge pull request #3557 from Ma27/nix-repl-help | Eelco Dolstra | |
Improve help-message for nix-repl | |||
2020-05-05 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-05-05 | nix doctor: Consistency | Eelco Dolstra | |
2020-05-05 | nix --help: Group commands | Eelco Dolstra | |
2020-05-04 | Flag: Use designated initializers | Eelco Dolstra | |
2020-05-01 | Improve help-message for nix-repl | Maximilian Bosch | |
* Remove obsolete `printHelp` function * Add an example to demonstrate how to list all available commands within the REPL | |||
2020-05-01 | Fix build | Eelco Dolstra | |
2020-05-01 | rename nix run to nix shell and nix app to nix run | Matthew Kenigsberg | |
(cherry picked from commit 5d8504b9789ffebabe8226227c4061dd48354177) | |||
2020-05-01 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-04-30 | nix dev-shell: Unset shellHook | Eelco Dolstra | |
This avoids inheriting the caller's shellHook, which can happen when running a dev-shell inside a dev-shell. | |||
2020-04-30 | nix dev-shell: Support structured attrs | Eelco Dolstra | |
Tested against https://github.com/NixOS/nixpkgs/pull/72074. Fixes #3540. | |||
2020-04-30 | nix dev-shell: Refactor script for getting the environment | Eelco Dolstra | |
2020-04-29 | rename nix run to nix shell and nix app to nix run | Matthew Kenigsberg | |
2020-04-29 | Remove the `drain` argument from `readFile` | Guillaume Bouchard | |
Now it is always `drain` (see previous commit). | |||
2020-04-29 | nix copy: Build derivations | Eelco Dolstra | |
Fixes $ nix copy .#hydraJobs.vendoredCrates --to /tmp/nix error: path '/nix/store/...' is not valid | |||
2020-04-29 | nix copy: Move --from / --to check | Eelco Dolstra | |
This means you now get an error message *before* stuff gets built: $ nix copy .#hydraJobs.vendoredCrates error: you must pass '--from' and/or '--to' Try 'nix --help' for more information. | |||
2020-04-29 | Evaluation cache: Don't barf in read-only mode | Eelco Dolstra | |
Fixes $ nix copy warning: Git tree '/home/eelco/Dev/nix-flake' is dirty nix: src/nix/installables.cc:348: std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, nix::FlakeRef, nix::InstallableValue::DerivationInfo> nix::InstallableFlake::toDerivation(): Assertion `state->store->isValidPath(drvPath)' failed. Aborted (core dumped) | |||
2020-04-29 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-04-28 | rename to NIX_GCROOT | Matthew Kenigsberg | |
2020-04-27 | Improve path:// handling | Eelco Dolstra | |
In particular, doing 'nix build /path/to/dir' now works if /path/to/dir is not a Git tree (it only has to contain a flake.nix file). Also, 'nix flake init' no longer requires a Git tree (but it will do a 'git add flake.nix' if it's a Git tree) | |||
2020-04-27 | flake-template.nix: Add defaultPackage | Eelco Dolstra | |
2020-04-27 | comment | Matthew Kenigsberg | |
2020-04-27 | Set GCROOT to store path to prevent garbage collection | Matthew Kenigsberg | |
2020-04-27 | Improve error message when an argument is not a flake | Eelco Dolstra | |
2020-04-27 | nix search: Search legacyPackages recursively | Eelco Dolstra | |
2020-04-24 | nix search: Show version | Eelco Dolstra | |
2020-04-20 | Revive 'nix search' | Eelco Dolstra | |
It uses the evaluation cache now rather than the ad hoc JSON cache. | |||
2020-04-20 | Move eval-cache.{cc,hh} | Eelco Dolstra | |
2020-04-20 | Get rid of the old eval cache | Eelco Dolstra | |
2020-04-19 | Store more stuff in the evaluation cache | Eelco Dolstra | |
In particular, we store whether an attribute failed to evaluate (threw an exception) or was an unsupported type. This is to ensure that a repeated 'nix flake show' never has to evaluate anything, so it can execute without fetching the flake. With this, 'nix flake show nixpkgs/nixos-20.03 --legacy' executes in 0.6s (was 3.4s). | |||
2020-04-18 | Eval cache: Don't replace real attributes with placeholders | Eelco Dolstra | |