[Nix-dev] fetchgit with ssh
Sönke Hahn
SoenkeHahn at gmail.com
Mon Jan 13 16:09:49 CET 2014
Thomas Bereknyei wrote:
> I'm not positive this is the problem, but take a look at another
> example. No quotes around the url and different format.
>
> src = fetchgit {
> url = git://git.gnupg.org/libgcrypt.git;
> rev = "99b18aa53";
> sha256 = "1rhbpxqrkfszlv8jvw8s4apwklal07k8zxv5q555l7binc1j1j3z";
> };
Thanks for the suggestion. I tried:
url = git://git@github.com/jekor/haskell-sscgi.git;
This was the result:
fatal: Unable to look up git at github.com (port 9418) (Name or service not
known)
So I tried
url = git://github.com/jekor/haskell-sscgi.git;
, which works, great! (I get another error message based on a missing
Setup.hs, but that's an easy fix.)
Omitting the username does not seem to work for bitbucket, though. Nixops
just hangs after initializing the git repo. I guess, github has 'git' set as
the default user.
>
> On Mon, Jan 13, 2014 at 12:40 AM, Sönke Hahn <SoenkeHahn at gmail.com> wrote:
>> Hi,
>>
>> I am trying to use fetchgit to package code that is available in
>> git-repos. I am using for example this expression:
>>
>> pkgs.fetchgit {
>> url = "git at github.com:jekor/haskell-sscgi.git";
>> rev = "1547156d7199bdf40a837040a905d9b6b771dd26";
>> }
>>
>> This does not work, the error message being:
>>
>> error: cannot run ssh: No such file or directory
>> fatal: unable to fork
>> error: cannot run ssh: No such file or directory
>> fatal: unable to fork
>>
>> Is this not supported by fetchgit? Is there anything I can do about it?
>>
>> I tried to bring ssh in the PATH somehow, but I didn't manage. Can I
>> include the openssh package to make it visible to fetchgit?
>>
>> I also tried out https-urls. The problem is that not all repos that I
>> need to access are public. So I have to provide some authentication. For
>> ssh I can just put keys in .ssh, but for https in this setting, I'm not
>> sure if it's even possible.
>>
>> Any advice appreciated.
>>
>> Cheers,
>> Sönke
>>
>>
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list