1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 05:21: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

@ -0,0 +1,23 @@
#pragma once
#include "store-api.hh"
#include <regex>
namespace nix {
struct GitInfo
{
Path storePath;
std::string rev;
std::string shortRev;
uint64_t revCount = 0;
};
GitInfo exportGit(ref<Store> store, const std::string & uri,
std::experimental::optional<std::string> ref, std::string rev,
const std::string & name);
extern std::regex revRegex;
}