aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
AgeCommit message (Collapse)Author
2019-05-22Fetch the flake registry from the NixOS/flake-registry repoEelco Dolstra
2019-05-22Check the flake epochEelco Dolstra
Closes #2883.
2019-05-22Move flake-related flags into a separate classEelco Dolstra
Also, rename --dont-save-lock-file to --no-save-lock-file and change noRegistries to useRegistries.
2019-05-22Improve FlakeCommandEelco Dolstra
It now handles commonality like calling getFlake() and resolving relative local flake refs. Fixes #2822.
2019-05-21Use warn(), tweak messagesEelco Dolstra
2019-05-21Only rewrite the lockfile if it changedEelco Dolstra
This removes spurious warnings about failure to write the lockfile.
2019-05-17Lockfile handling in `resolveFlake` is fixedNick Van den Broeck
2019-05-16Give errors in resolveFlakeNick Van den Broeck
If DontUpdate but the lockfile isn't correct
2019-05-16Fixed issue 65Nick Van den Broeck
lockfile updating
2019-05-15Make 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-15One FIXME was already fixedNick Van den Broeck
2019-05-09Fixed issue #47Nick Van den Broeck
Content hashes
2019-05-08Fix 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-08Add newline at end of lockfileEelco Dolstra
Suggested by @grahamc.
2019-05-08Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2019-05-08Merge remote-tracking branch 'tweag/flake-test' into flakesEelco Dolstra
2019-05-08Export missing rev/shortRev attributesEelco Dolstra
2019-05-08updateLockFile: Do "git add" in a slightly nicer wayEelco Dolstra
"--intent-to-add" ensures the change shows up in "git diff".
2019-05-07Fix immutable flakeref constructionEelco Dolstra
We were appending ref/revs incorrectly for the IsGit case (by appending /<ref>/<rev> rather than ?ref=<ref>&rev=<rev).
2019-05-07Improve 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-07Make the URL/path of the global flake registry configurableEelco Dolstra
2019-05-07Fixed Flake data type and flake fetchingNick Van den Broeck
2019-05-03Add builtins.hashFileDaniel 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-03Fix 'git add' when subdir is emptyEelco Dolstra
2019-05-03Merge remote-tracking branch 'tweag/subdir' into flakesEelco Dolstra
2019-05-02Fixed compile errorsNick Van den Broeck
2019-05-01Allow 'dir' parameter in github: URIsEelco Dolstra
E.g. 'github:edolstra/dwarffs/flake?dir=foo/bar'.
2019-05-01Accept empty directoriesEelco Dolstra
2019-05-01Validate 'dir=' parametersEelco Dolstra
We reject any path element starting with a '.' (mostly to reject '.' and '..').
2019-05-01Improve error messageEelco Dolstra
2019-05-01flake.lock now uses flakeRef.subdirNick Van den Broeck
2019-05-01Support 'dir' parameters in https and ssh flake URIsEelco Dolstra
2019-05-01FuzzymatchingNick Van den Broeck
Fixed issue #61
2019-05-01WIP: still need to adapt flakeref parsingNick Van den Broeck
2019-04-30Merge remote-tracking branch 'tweag/flakeFlags' into flakesEelco Dolstra
2019-04-30Fixed issue #13Nick Van den Broeck
2019-04-30Fix flag registry orderNick Van den Broeck
2019-04-25Fixed lookupFlake bugNick Van den Broeck
2019-04-24Merge remote-tracking branch 'tweag/flake-clone' into flakesEelco Dolstra
2019-04-19Merge remote-tracking branch 'tweag/resolvedFlake' into flakesEelco Dolstra
2019-04-19Changed some namesNick Van den Broeck
2019-04-19fetchGit: Return revCount for dirty working treesEelco Dolstra
2019-04-19exportGit: Don't clone local repositoriesEelco Dolstra
This ensures that commands like 'nix flake info /my/nixpkgs' don't copy a gigabyte of crap to ~/.cache/nix. Fixes #60.
2019-04-19Improve missing flake.nix error messageEelco Dolstra
2019-04-19Clean up exportGit argument handlingEelco Dolstra
2019-04-19Fix assertion failure in FlakeRef::to_string()Eelco Dolstra
2019-04-19Fix assertion failureEelco Dolstra
2019-04-17Fix mutability checkEelco Dolstra
2019-04-17Add command `flake clone`Nick Van den Broeck
2019-04-16Pass a flake to itself as "self"Eelco Dolstra