aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/flakeref.cc
AgeCommit message (Collapse)Author
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-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-01Support 'dir' parameters in https and ssh flake URIsEelco Dolstra
2019-05-01WIP: still need to adapt flakeref parsingNick Van den Broeck
2019-04-19Improve missing flake.nix error messageEelco Dolstra
2019-04-19Fix assertion failure in FlakeRef::to_string()Eelco Dolstra
2019-04-16Allow refs to start with a digitEelco Dolstra
E.g. we want to accept "19.03" as a ref.
2019-04-16Fix lock file generationEelco Dolstra
Before: "requires": { "nixpkgs": { "uri": "nixpkgs" } }, After: "requires": { "nixpkgs": { "uri": "github:edolstra/nixpkgs/f10e8a02eb7fa2b4a070f30cf87f4efcc7f3186d" } },
2019-04-15FlakeRef::to_string(): Drop the "flake:" prefixEelco Dolstra
This is unnecessary in most contexts and makes 'nix flake list' output less readable.
2019-04-09FlakeAlias is implementedNick Van den Broeck
2019-04-09Took ref and rev out of FlakeRefNick Van den Broeck
2019-04-08Allow relative paths in flakerefsEelco Dolstra
Also allow "." as an installable to refer to the flake in the current directory. E.g. $ nix build . will build 'provides.defaultPackage' in the flake in the current directory.
2019-04-08Add path flakeref variantEelco Dolstra
Unlike file://<path>, this allows the path to be a dirty Git tree, so nix build /path/to/flake:attr is a convenient way to test building a local flake.
2019-03-22Issue #15 is finishedNick Van den Broeck
2019-02-12Interpret all file:// URIs as Git repositoriesEelco Dolstra
2019-02-12Enforce use of immutable flakes in pure modeEelco Dolstra
... plus a temporary hack to allow impure flakes at top-level for the default installation source.
2019-02-12Improve flake referencesEelco Dolstra