Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-04-09 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-04-08 | DataTransfer -> FileTransfer | Nikola Knezevic | |
2020-04-08 | actDownload -> actDataTransfer | Nikola Knezevic | |
2020-04-07 | Backport libfetchers from the flakes branch | Eelco Dolstra | |
This provides a pluggable mechanism for defining new fetchers. It adds a builtin function 'fetchTree' that generalizes existing fetchers like 'fetchGit', 'fetchMercurial' and 'fetchTarball'. 'fetchTree' takes a set of attributes, e.g. fetchTree { type = "git"; url = "https://example.org/repo.git"; ref = "some-branch"; rev = "abcdef..."; } The existing fetchers are just wrappers around this. Note that the input attributes to fetchTree are the same as flake input specifications and flake lock file entries. All fetchers share a common cache stored in ~/.cache/nix/fetcher-cache-v1.sqlite. This replaces the ad hoc caching mechanisms in fetchGit and download.cc (e.g. ~/.cache/nix/{tarballs,git-revs*}). This also adds support for Git worktrees (c169ea59049f861aaba429f48b828d0820b74d1d). | |||
2020-03-30 | Backport 'nix dev-shell' from the flakes branch | Eelco Dolstra | |
This also adds a '--profile' option to 'nix build' (replacing 'nix-env --set'). | |||
2020-03-30 | Move fetchers from libstore to libfetchers | Eelco Dolstra | |
2020-03-24 | Misc changes from the flakes branch | Eelco Dolstra | |
2020-03-24 | Pretty-print 'nix why-depends' / 'nix-store -q --tree' output | Eelco Dolstra | |
Extracted from 678301072f05b650dc15c5edb4c25f08f0d6cace. | |||
2020-03-24 | absPath(): Use std::optional | Eelco Dolstra | |
(cherry picked from commit 1bf9eb21b75f0d93d9c1633ea2e6fdf840047e79) | |||
2020-03-24 | Add function for quoting strings | Eelco Dolstra | |
(cherry picked from commit 7dcf5b011a0942ecf953f2b607c4c8d0e9e652c7) | |||
2020-02-14 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-02-13 | Prevent uninitialized StorePath creation | Eelco Dolstra | |
2020-02-01 | Factor out TreeInfo | Eelco Dolstra | |
2020-02-01 | Show "warning:" in yellow instead of red | Eelco Dolstra | |
2020-01-31 | Change lock file format to use an attribute representation of flake refs ↵ | Eelco Dolstra | |
rather than URLs | |||
2020-01-31 | Use light box drawing symbols | Eelco Dolstra | |
2020-01-31 | nix flake list-inputs: Pretty-print the tree | Eelco Dolstra | |
2020-01-21 | Pluggable fetchers | Eelco Dolstra | |
Flakes are now fetched using an extensible mechanism. Also lots of other flake cleanups. | |||
2020-01-21 | absPath(): Use std::optional | Eelco Dolstra | |
2019-12-20 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2019-12-19 | tarfile.cc: Restore timestamps | Eelco Dolstra | |
This is needed to get the lastModified attribute of GitHub flakes. | |||
2019-12-19 | tarfile.cc: Don't change the cwd | Eelco Dolstra | |
Nix is multithreaded so it's not safe to change the cwd. | |||
2019-12-19 | tarfile.cc: Style fixes | Eelco Dolstra | |
2019-12-19 | Merge branch 'libarchive' of https://github.com/yorickvP/nix | Eelco Dolstra | |
2019-12-18 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2019-12-17 | Add priority setting to stores | Eelco Dolstra | |
This allows overriding the priority of substituters, e.g. $ nix-store --store ~/my-nix/ -r /nix/store/df3m4da96d84ljzxx4mygfshm1p0r2n3-geeqie-1.4 \ --substituters 'http://cache.nixos.org?priority=100 daemon?priority=10' Fixes #3264. | |||
2019-12-16 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2019-12-16 | nix-store -r: Handle symlinks to store paths | Eelco Dolstra | |
Fixes #3270. | |||
2019-12-13 | Move some code | Eelco Dolstra | |
2019-12-13 | Don't leak exceptions | Eelco Dolstra | |
2019-12-13 | Improve gzip error message | Eelco Dolstra | |
2019-12-13 | Get rid of CBox | Eelco Dolstra | |
2019-12-13 | Remove FIXME | Eelco Dolstra | |
2019-12-13 | Initial gzip support | Tom Bereknyei | |
Closes #3256 | |||
2019-12-11 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2019-12-10 | Make the Store API more type-safe | Eelco Dolstra | |
Most functions now take a StorePath argument rather than a Path (which is just an alias for std::string). The StorePath constructor ensures that the path is syntactically correct (i.e. it looks like <store-dir>/<base32-hash>-<name>). Similarly, functions like buildPaths() now take a StorePathWithOutputs, rather than abusing Path by adding a '!<outputs>' suffix. Note that the StorePath type is implemented in Rust. This involves some hackery to allow Rust values to be used directly in C++, via a helper type whose destructor calls the Rust type's drop() function. The main issue is the dynamic nature of C++ move semantics: after we have moved a Rust value, we should not call the drop function on the original value. So when we move a value, we set the original value to bitwise zero, and the destructor only calls drop() if the value is not bitwise zero. This should be sufficient for most types. Also lots of minor cleanups to the C++ API to make it more modern (e.g. using std::optional and std::string_view in some places). | |||
2019-12-09 | further clean up libarchive code | Yorick van Pelt | |
2019-12-07 | Clean up libarchive support | Puck Meerburg | |
2019-12-07 | remove rust unpack_tarfile ffi | Yorick van Pelt | |
2019-12-07 | code 'cleanup' | Yorick van Pelt | |
2019-12-07 | add wrapper function around libarchive to c++ errors | Yorick van Pelt | |
2019-12-07 | fixup! libarchive proof of concept | Yorick van Pelt | |
2019-12-07 | libarchive proof of concept | Yorick van Pelt | |
2019-12-05 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2019-12-05 | Initialize Command::_name | Eelco Dolstra | |
(cherry picked from commit d0a769cb061a13ad880c76e5ea69a76150439853) | |||
2019-12-05 | Make subcommand construction in MultiCommand lazy | Eelco Dolstra | |
(cherry picked from commit a0de58f471c9087d8e6cc60a6078f9940a125b15) | |||
2019-12-05 | Move Command and MultiCommand to libutil | Eelco Dolstra | |
(cherry picked from commit f70434b1fbbdb0e188718f0c55a8156a7aa08744) | |||
2019-12-05 | Eliminate more pass-by-value in variadic calls | Eelco Dolstra | |
2019-12-05 | Revert "Make fmt() non-recursive" | Eelco Dolstra | |
This reverts commit 2b761d5f50b7dc17dc55c31980c2253c37b3c920. Also *really* make fmt() take arguments by reference. | |||
2019-12-05 | fmt(): Pass arguments by reference rather than by value | Eelco Dolstra | |