From d8bf0d4859e28ddd23401fbe89f4e528aa09ddb3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 29 Apr 2016 21:04:40 +0200 Subject: Support Git repos in the Nix path E.g. $ nix-build -I nixpkgs=git://github.com/NixOS/nixpkgs '' -A hello This is not extremely useful yet because you can't specify a branch/revision. --- src/libexpr/primops/fetchgit.hh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/libexpr/primops/fetchgit.hh (limited to 'src/libexpr/primops/fetchgit.hh') 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 + +#include "ref.hh" + +namespace nix { + +class Store; + +Path exportGit(ref store, + const std::string & uri, const std::string & rev); + +} -- cgit 1.4.1