[Nix-dev] git svn and how to install it please?

Tony White tonywhite100 at googlemail.com
Fri Jun 12 07:30:14 CEST 2009


2009/6/11 Marc Weber <marco-oweber at gmx.de>:
> On Thu, Jun 11, 2009 at 02:24:04PM +1000, Jeevakan Suresh wrote:
>> I think this will solve your problem (add this to your config.nix file)
>> {
>>     git = { svnSupport = true; };
>>     subversion = { perlBindings = true; };
>> }
>>
>> A longer explanation of why you need both lines (and a possible fix) is below:
>
> The assertion should have failed telling you that you need both.
> Why didn't it ? I don't know. I added those lines half a year ago
> because other fall into this trap that time. So I tried fixing it once
> and for all.
>
> About git-foo vs git foo. The first one was used in the passed and is
> depreceated. git foo will call $out/lib/exec/git-foo for you. So git foo
> is the recommended way. (You still have to use man git-foo though!)
>
> About implicit dependencies:
> Search the mailinglist. This topic has popped up multiple times. Eelco
> Dolstra preferred the assertion way to not make nix install the same
> package multiple times (which will happen anyway (IMHO)).
> I think kosmikus preferst the "make it work" approach.
> I may not recall this correctly. So read up the old threads about the
> same topic.
>
> But: We need a wiki to write this down once and forall. At the moment I
> can't afford woring on nix. I have to earn some money. Sorry.
>
> About setting the settings globally:
> This seems to work for me (Don't ask me why:)
>
> Add those settings to /root/.nixpkgs/config.nix.
>
> Eg veryify by prepending:
>
>  if true then throw "nix hit me. remove this throw again"
>  else
>
> If nixos doesn't rebuilt throwing that message you've won.
>
> Tony, if you still can't get it to work contact me on irc.freenode.net
> (ping me or write a private message to MarcWeber2)
>
> Good luck
> Marc Weber
> _______________________________________________
> nix-dev mailing list
> nix-dev at cs.uu.nl
> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>

Hi all,
Some good news. :)

I found what's been going wrong. It was sudo. Using sudo instead of su
- to nixos-rebuild switch is what causes problems.
So I was able get git svn and all is well. :)
I used /nix/etc/config.nix containing :

{
   git = { svnSupport = true; };
   subversion = { perlBindings = true; };
}

su -
nixos-rebuild switch

All went well and I can now do git svn in a konsole.

So thanks to everyone that helped, I really needed to get git svn. It
was actually after reading Marc's message that it dawned on me to try
su - instead.

This does however beg the question, does my user account need to be in
the nix group or similar to be able to issue sudo nixos-rebuild switch
and avoid problems like this?

Anyway, thanks all for taking time out to reply during your busy day,
it is greatly appreciated.

Regards,
Tony



More information about the nix-dev mailing list