Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-07-31 | Fix indentation | John Ericson | |
2020-07-16 | Merge branch 'hash-always-has-type' of github.com:obsidiansystems/nix into ↵ | John Ericson | |
better-ca-parse-errors | |||
2020-07-01 | Rename two hash constructors to proper functions | Carlo Nucera | |
2020-06-03 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-06-01 | use Tree ctor | Matthew Kenigsberg | |
2020-05-30 | Remove TreeInfo | Eelco Dolstra | |
The attributes previously stored in TreeInfo (narHash, revCount, lastModified) are now stored in Input. This makes it less arbitrary what attributes are stored where. As a result, the lock file format has changed. An entry like "info": { "lastModified": 1585405475, "narHash": "sha256-bESW0n4KgPmZ0luxvwJ+UyATrC6iIltVCsGdLiphVeE=" }, "locked": { "owner": "NixOS", "repo": "nixpkgs", "rev": "b88ff468e9850410070d4e0ccd68c7011f15b2be", "type": "github" }, is now stored as "locked": { "owner": "NixOS", "repo": "nixpkgs", "rev": "b88ff468e9850410070d4e0ccd68c7011f15b2be", "type": "github", "lastModified": 1585405475, "narHash": "sha256-bESW0n4KgPmZ0luxvwJ+UyATrC6iIltVCsGdLiphVeE=" }, The 'Input' class is now a dumb set of attributes. All the fetcher implementations subclass InputScheme, not Input. This simplifies the API. Also, fix substitution of flake inputs. This was broken since lazy flake fetching started using fetchTree internally. | |||
2020-05-26 | Change remaining bools with FileIngestionMethod | Carlo Nucera | |
2020-04-07 | Respect the narHash attribute in more input types | Eelco Dolstra | |
(cherry picked from commit a6ff66b658b61aef80d936f0183447fe4cb46000) | |||
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-04-02 | Respect the narHash attribute in more input types | Eelco Dolstra | |
call-flake.nix now passes node.info.narHash to fetchTree. This ensures that dirty Git trees work even in pure mode. | |||
2020-03-30 | Move fetchers from libstore to libfetchers | Eelco Dolstra | |