Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-05-29 | Remove makeFlakeValue() | Eelco Dolstra | |
2019-05-29 | Put flake-related stuff in its own namespace | Eelco Dolstra | |
2019-05-29 | Make unsupported flake attributes a fatal error | Eelco Dolstra | |
2019-05-29 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2019-05-29 | Get last commit time of github flakes | Eelco Dolstra | |
2019-05-29 | Add date of last commit to SourceInfo | Eelco Dolstra | |
This is primarily useful for version string generation, where we need a monotonically increasing number. The revcount is the preferred thing to use, but isn't available for GitHub flakes (since it requires fetching the entire history). The last commit timestamp OTOH can be extracted from GitHub tarballs. | |||
2019-05-28 | Iterate over references | Eelco Dolstra | |
2019-05-28 | Merge branch 'attrPaths' of https://github.com/NinjaTrappeur/nix | Eelco Dolstra | |
2019-05-28 | callFlake(): Emit source info attributes for non-flake dependencies | Eelco Dolstra | |
2019-05-28 | Remove redundant resolvedRef fields since they're already in SourceInfo | Eelco Dolstra | |
2019-05-28 | Rename contentHash -> narHash for consistency | Eelco Dolstra | |
2019-05-28 | Move hash into SourceInfo and rename to narHash to avoid ambiguity | Eelco Dolstra | |
2019-05-28 | Store SourceInfo in Flake and NonFlake | Eelco Dolstra | |
This deduplicates some shared fields. Factoring out the commonality is useful in places like makeFlakeValue(). | |||
2019-05-28 | Merge branch 'nonFlakeRequiresTest' of https://github.com/CSVdB/nix into flakes | Eelco Dolstra | |
2019-05-28 | Added nonFlakeRequires test | Nick Van den Broeck | |
Fixes #2888 | |||
2019-05-28 | Fixed relative path parsing | Nick Van den Broeck | |
Fixed #2821 | |||
2019-05-23 | Register flake source trees as GC roots | Eelco Dolstra | |
This ensures that flakes don't get garbage-collected, which is important to get nix-channel-like behaviour. For example, running $ nix build hydra: will create a GC root ~/.cache/nix/flake-closures/hydra -> /nix/store/xarfiqcwa4w8r4qpz1a769xxs8c3phgn-flake-closure where the contents/references of the linked file in the store are the flake source trees used by the 'hydra' flake: /nix/store/n6d5f5lkpfjbmkyby0nlg8y1wbkmbc7i-source /nix/store/vbkg4zy1qd29fnhflsv9k2j9jnbqd5m2-source /nix/store/z46xni7d47s5wk694359mq9ay353ar94-source Note that this in itself is not enough to allow offline use; the fetcher for the flakeref (e.g. fetchGit or downloadCached) must not fail if it cannot fetch the latest version of the file, so long as it knows a cached version. Issue #2868. | |||
2019-05-23 | FlakeRef::to_string(): Check round trip | Eelco Dolstra | |
2019-05-23 | fetchGit: Don't barf if we can't update our Git clone | Eelco Dolstra | |
Instead print a warning that we're continuing with the most recently fetched version. | |||
2019-05-22 | Prevent the global registry from being GC'ed | Eelco Dolstra | |
Issue #2868. | |||
2019-05-22 | Refactor downloadCached() interface | Eelco Dolstra | |
2019-05-22 | Fetch the flake registry from the NixOS/flake-registry repo | Eelco Dolstra | |
2019-05-22 | Check the flake epoch | Eelco Dolstra | |
Closes #2883. | |||
2019-05-22 | Move flake-related flags into a separate class | Eelco Dolstra | |
Also, rename --dont-save-lock-file to --no-save-lock-file and change noRegistries to useRegistries. | |||
2019-05-22 | Improve FlakeCommand | Eelco Dolstra | |
It now handles commonality like calling getFlake() and resolving relative local flake refs. Fixes #2822. | |||
2019-05-21 | Use warn(), tweak messages | Eelco Dolstra | |
2019-05-21 | Only rewrite the lockfile if it changed | Eelco Dolstra | |
This removes spurious warnings about failure to write the lockfile. | |||
2019-05-17 | Lockfile handling in `resolveFlake` is fixed | Nick Van den Broeck | |
2019-05-16 | Give errors in resolveFlake | Nick Van den Broeck | |
If DontUpdate but the lockfile isn't correct | |||
2019-05-16 | Fixed issue 65 | Nick Van den Broeck | |
lockfile updating | |||
2019-05-15 | Make flakes work with 'nix build --store ...' | Eelco Dolstra | |
It was getting confused between logical and real store paths. Also, make fetchGit and fetchMercurial update allowedPaths properly. (Maybe the evaluator, rather than the caller of the evaluator, should apply toRealPath(), but that's a bigger change.) | |||
2019-05-15 | One FIXME was already fixed | Nick Van den Broeck | |
2019-05-09 | Fixed issue #47 | Nick Van den Broeck | |
Content hashes | |||
2019-05-08 | Fix assertion failure in FlakeRef::to_string() | Eelco Dolstra | |
Fixes $ nix build nix: src/libexpr/primops/flakeref.cc:169: std::__cxx11::string nix::FlakeRef::to_string() const: Assertion `!rev' failed. Aborted e.g. when flake.nix doesn't exist. Also use gitRev(). | |||
2019-05-08 | Add newline at end of lockfile | Eelco Dolstra | |
Suggested by @grahamc. | |||
2019-05-08 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2019-05-08 | Merge remote-tracking branch 'tweag/flake-test' into flakes | Eelco Dolstra | |
2019-05-08 | Export missing rev/shortRev attributes | Eelco Dolstra | |
2019-05-08 | updateLockFile: Do "git add" in a slightly nicer way | Eelco Dolstra | |
"--intent-to-add" ensures the change shows up in "git diff". | |||
2019-05-07 | Fix immutable flakeref construction | Eelco Dolstra | |
We were appending ref/revs incorrectly for the IsGit case (by appending /<ref>/<rev> rather than ?ref=<ref>&rev=<rev). | |||
2019-05-07 | Improve FlakeRef::to_string() | Eelco Dolstra | |
We were incorrectly using path syntax (i.e. /<ref>/<rev>) for Git repositories. This is only valid for GitHub flakerefs. | |||
2019-05-07 | Make the URL/path of the global flake registry configurable | Eelco Dolstra | |
2019-05-07 | Fixed Flake data type and flake fetching | Nick Van den Broeck | |
2019-05-03 | Add builtins.hashFile | Daniel Schaefer | |
For text files it is possible to do it like so: `builtins.hashString "sha256" (builtins.readFile /tmp/a)` but that doesn't work for binary files. With builtins.hashFile any kind of file can be conveniently hashed. | |||
2019-05-03 | Fix 'git add' when subdir is empty | Eelco Dolstra | |
2019-05-03 | Merge remote-tracking branch 'tweag/subdir' into flakes | Eelco Dolstra | |
2019-05-02 | Fixed compile errors | Nick Van den Broeck | |
2019-05-01 | Allow 'dir' parameter in github: URIs | Eelco Dolstra | |
E.g. 'github:edolstra/dwarffs/flake?dir=foo/bar'. | |||
2019-05-01 | Accept empty directories | Eelco Dolstra | |
2019-05-01 | Validate 'dir=' parameters | Eelco Dolstra | |
We reject any path element starting with a '.' (mostly to reject '.' and '..'). |