1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 23:11:16 +02:00

Initial flake support

This commit is contained in:
Eelco Dolstra 2018-11-29 19:18:36 +01:00
parent f216c76c56
commit 7a5cf31060
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
9 changed files with 282 additions and 47 deletions

View file

@ -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,