diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-29T19·04+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-29T19·07+0200 |
commit | d8bf0d4859e28ddd23401fbe89f4e528aa09ddb3 (patch) | |
tree | b10ec7730294bb404cb08cdf2a85c93e631212bd /src/libexpr/primops/fetchgit.hh | |
parent | 38539b943a060d9cdfc24d6e5d997c0885b8aa2f (diff) |
Support Git repos in the Nix path
E.g. $ nix-build -I nixpkgs=git://github.com/NixOS/nixpkgs '<nixpkgs>' -A hello This is not extremely useful yet because you can't specify a branch/revision.
Diffstat (limited to 'src/libexpr/primops/fetchgit.hh')
-rw-r--r-- | src/libexpr/primops/fetchgit.hh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libexpr/primops/fetchgit.hh b/src/libexpr/primops/fetchgit.hh new file mode 100644 index 000000000000..6ffb21a96daa --- /dev/null +++ b/src/libexpr/primops/fetchgit.hh @@ -0,0 +1,14 @@ +#pragma once + +#include <string> + +#include "ref.hh" + +namespace nix { + +class Store; + +Path exportGit(ref<Store> store, + const std::string & uri, const std::string & rev); + +} |