mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
Initial flake support
This commit is contained in:
parent
f216c76c56
commit
7a5cf31060
9 changed files with 282 additions and 47 deletions
|
@ -1,3 +1,4 @@
|
|||
#include "fetchGit.hh"
|
||||
#include "primops.hh"
|
||||
#include "eval-inline.hh"
|
||||
#include "download.hh"
|
||||
|
@ -15,14 +16,6 @@ using namespace std::string_literals;
|
|||
|
||||
namespace nix {
|
||||
|
||||
struct GitInfo
|
||||
{
|
||||
Path storePath;
|
||||
std::string rev;
|
||||
std::string shortRev;
|
||||
uint64_t revCount = 0;
|
||||
};
|
||||
|
||||
std::regex revRegex("^[0-9a-fA-F]{40}$");
|
||||
|
||||
GitInfo exportGit(ref<Store> store, const std::string & uri,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue