[Nix-dev] Somewhat broken nix-prefetch-git
paul at colomiets.name
Tue Jan 20 21:26:09 CET 2015
I'm used to do:
And use this commit in some nix files. This helps test new revision of
some git repository without pushing it to public.
But since recently this workflow is broken. I can use nix-prefetch-git
but it doesn't help (the output from nix-rebuild):
exporting /home/user_name/repo_name (rev a259b) into
Initialized empty Git repository in
fatal: '/home/user_name/repo_name' does not appear to be a git repository
fatal: Could not read from remote repository.
This is because builders do not have access to user directory. Which
is a good thing.
What is broken is probably nix-prefetch-git which exports to
/nix/store/xxxxx-git-export, and builder expects another name (see
above). And this is probably related to this commit:
Any ideas of how to restore this workflow?
More information about the nix-dev