Commit graph

17 commits

Author SHA1 Message Date
Eelco Dolstra 8812d6d109 Don't pass rev/shortRev for dirty trees 2020-11-26 21:53:11 +01:00
Robert Hensing 5ad681b894 Simplify rootSrc fetchGit logic 2020-10-27 11:48:33 +01:00
Robert Hensing 64de97c480 Use fetchGit on git worktrees
Git worktrees have a file for .git and can be loaded with fetchGit.
2020-10-27 11:45:18 +01:00
Maximilian Bosch 0d4ab83c96
Be more consistent with Nix itself when fetching github/gitlab inputs
* `url` got renamed to `host` in Nix[1], so we have to use this key here
  as well.
* It was suggested previously[2] to use the same URL to download from a
  GitLab-server as Nix does.

[1] 56f1e0df05
[2] 0e29814f1e (commitcomment-42619895)
2020-09-22 21:20:22 +02:00
Maximilian Bosch 0e29814f1e
Add support for flake inputs with type = "gitlab" 2020-09-18 14:18:10 +02:00
Azure Zanculmarktum e363cffac2 Support flake inputs with type tarball 2020-09-07 19:45:53 +07:00
Cole Helbling f10b647d90
Support flake inputs with type path 2020-09-02 14:33:47 -07:00
Matthew Bauer c71d063a2f Allow calling flakes without a flake.lock
If no inputs but "self" are specified, Nix will not generate a
flake.lock at all. In this case, Flakes are mostly just used to
provide a more pure Nix experience, while sources are locked through
some other means (niv, ob thunk, manually, etc.). Supporting this is a
little weird, but it ends up working for my
repo (https://github.com/matthewbauer/nixiosk).
2020-08-20 15:49:28 -05:00
Eelco Dolstra c75e76f80c Add support for lock file versions 6 and 7 2020-06-17 19:18:34 +02:00
Eelco Dolstra d3c33ef110 Style 2020-06-17 19:02:15 +02:00
Antoine Eiche 2c2a50af4d Try to fetchGit the provided src
The goal is to filter the provided src tree based on Git tracked files
to avoid unexpected rebuild. If the provided src tree is a not valid Git
repository, no filtering is applied.
2020-06-16 14:14:30 +02:00
Eelco Dolstra f012cc5092 Add support for git inputs 2020-04-29 13:06:17 +02:00
Eelco Dolstra 88dc02caca lastModified -> lastModifiedDate 2020-04-14 18:35:39 +02:00
Eelco Dolstra 6c21ad2740
Add support for lock file version 5 2020-03-31 16:05:00 +02:00
Jonas Chevalier 9ef308133d
parameterize the system attribute
Allow to instantiate flake-compat with another system
2020-03-28 18:53:45 +01:00
Eelco Dolstra 123f9a83cb
Handle non-flake inputs 2020-03-14 14:48:23 +01:00
Eelco Dolstra 59f787c31c
Initial version 2020-02-25 14:26:24 +01:00