Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-03-28 | Warn about --override-input / --update-input flags that don't match an input | Eelco Dolstra | |
2020-03-28 | nix flake info: Show flake subdirectory | Eelco Dolstra | |
2020-03-27 | Improve lock file generation | Eelco Dolstra | |
This is now done in a single pass. Also fixes some issues when updating flakes with circular dependencies. Finally, when using '--recreate-lock-file --commit-lock-file', the commit message now correctly shows the differences. | |||
2020-03-27 | Fix diffLockFiles() | Eelco Dolstra | |
2020-03-20 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-03-18 | Get rid of downloadCached() | Eelco Dolstra | |
Everything uses the generic caching system now. | |||
2020-03-17 | Require shallow clones to be requested explicitly | Eelco Dolstra | |
If you do a fetchTree on a Git repository, whether the result contains a revCount attribute should not depend on whether that repository happens to be a shallow clone or not. That would complicate caching a lot and would be semantically messy. So applying fetchTree/fetchGit to a shallow repository is now an error unless you pass the attribute 'shallow = true'. If 'shallow = true', we don't return revCount, even if the repository is not actually shallow. Note that Nix itself is not doing shallow clones at the moment. But it could do so as an optimisation if the user specifies 'shallow = true'. Issue #2988. | |||
2020-03-17 | Unified fetcher caching system | Eelco Dolstra | |
2020-03-16 | Add a test for shallow Git clones | Eelco Dolstra | |
Also, don't return a revCount anymore for shallow or dirty Git trees, since it's incorrect. Closes #2988. | |||
2020-03-13 | Add missing `#include <regex>` | John Ericson | |
2020-03-12 | Change the lock file to a graph | Eelco Dolstra | |
This enables support for cycles between flakes. | |||
2020-03-11 | Move call-flake.nix into libexpr | Eelco Dolstra | |
2020-03-11 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-03-11 | Move some corepkgs into the nix binary | Eelco Dolstra | |
2020-03-11 | parseExprFromString(): Use std::string_view | Eelco Dolstra | |
2020-03-10 | Fix flake subdirectory handling | Eelco Dolstra | |
2020-03-09 | Move calling flakes into a Nix helper function (call-flake.nix) | Eelco Dolstra | |
2020-03-09 | Add 'flake' attribute to lock files to denote non-flakes | Eelco Dolstra | |
2020-03-04 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-03-04 | builtins.cache: Cache regular expressions | Eelco Dolstra | |
The evaluator was spending about 1% of its time compiling a small number of regexes over and over again. | |||
2020-02-20 | Restore subdir -> dir | Eelco Dolstra | |
Got this mixed up somewhere. | |||
2020-02-20 | Restore subdir support in registries | Eelco Dolstra | |
Hacky... | |||
2020-02-20 | fetchTree: Use a feature flag | Eelco Dolstra | |
2020-02-14 | Fix build | Eelco Dolstra | |
2020-02-14 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-02-13 | Bindings::get(): std::optional<Attr *> -> Attr * | Eelco Dolstra | |
Returning a nullable type in an optional is silly. | |||
2020-02-11 | Add fetchTree builtin function | Eelco Dolstra | |
This allows all supported fetchers to be used, e.g. builtins.fetchTree { type = "github"; owner = "NixOS"; repo = "nix"; rev = "d4df99a3349cf2228a8ee78dea320afef86eb3ba"; } | |||
2020-02-07 | nix edit: Support non-derivation attributes | Eelco Dolstra | |
E.g. $ nix edit .#nixosConfigurations.bla now works. | |||
2020-02-07 | findAlongAttrPath(): Return position | Eelco Dolstra | |
2020-02-06 | Registry: Use attr notation instead of URLs | Eelco Dolstra | |
2020-02-05 | Warn when we commit a new revision | Eelco Dolstra | |
2020-02-05 | Improve commit subject line | Eelco Dolstra | |
2020-02-05 | Add option --commit-lock-file | Eelco Dolstra | |
2020-02-03 | Install headers in the correct location | Eelco Dolstra | |
2020-02-03 | Fix URL parser | Eelco Dolstra | |
Fixes #3062. | |||
2020-02-03 | Emit narHash attribute | Eelco Dolstra | |
2020-02-02 | Automatically do git/hg add on flake.lock | Eelco Dolstra | |
2020-02-02 | Don't store fragment in FlakeRef | Eelco Dolstra | |
2020-02-02 | Re-read flake after updating flake.lock | Eelco Dolstra | |
Otherwise we'll evaluate the flake with the wrong metadata (rev, ...). | |||
2020-02-02 | Detect circular flake imports | Eelco Dolstra | |
Fixes #2997. | |||
2020-02-02 | Substitute flake inputs | Eelco Dolstra | |
This improves reproducibility and may be faster than fetching from the original source (especially for git/hg inputs, but probably also for github inputs - our binary cache is probably faster than GitHub's dynamically generated tarballs). Unfortunately this doesn't work for the top-level flake since even if we know the NAR hash of the tree, we don't know the other tree attributes such as revCount and lastModified. Fixes #3253. | |||
2020-02-02 | Add TreeInfo::computeStorePath() | Eelco Dolstra | |
2020-02-02 | Cleanup | Eelco Dolstra | |
2020-02-02 | Renamed ref / resolvedRef -> lockedRef | Eelco Dolstra | |
2020-02-01 | Remove superfluous TreeInfo::rev field | Eelco Dolstra | |
2020-02-01 | Record TreeInfo in the lock file | Eelco Dolstra | |
Necessary for #3253. | |||
2020-02-01 | Factor out TreeInfo | Eelco Dolstra | |
2020-01-31 | Allow flake input specification via attributes rather than a URL | Eelco Dolstra | |
E.g. inputs.dwarffs = { type = "github"; owner = "edolstra"; repo = "dwarffs"; }; rather than inputs.dwarffs.url = github:edolstra/dwarffs; | |||
2020-01-31 | Cleanup | Eelco Dolstra | |
2020-01-31 | Change lock file format to use an attribute representation of flake refs ↵ | Eelco Dolstra | |
rather than URLs |