mirror of
https://github.com/NixOS/nix
synced 2025-06-28 05:21:16 +02:00
Initial flake support
This commit is contained in:
parent
f216c76c56
commit
7a5cf31060
9 changed files with 282 additions and 47 deletions
23
src/libexpr/primops/fetchGit.hh
Normal file
23
src/libexpr/primops/fetchGit.hh
Normal 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;
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue