[Nix-dev] patch list.nix fix sort

Marc Weber marco-oweber at gmx.de
Thu Feb 17 23:08:52 CET 2011


Excerpts from Eelco Dolstra's message of Thu Feb 17 22:57:46 +0100 2011:
> Hi,
> 
> On 02/17/2011 09:08 PM, Marc Weber wrote:
> 
> > @@ -157,7 +157,7 @@ rec {
> >           else let
> >             part = partition (strictLess (head l)) (tail l);
> >           in
> > -          qs part.wrong ([(head l)] ++ qs part.right []);
> > +          (qs part.wrong ([(head l)] ++ qs part.right [])) ++ concat;
> 
> What's the point of the "concat" argument?  Why not just

I didn't spend too much time on it. It made my test case pass.
Previously sorting sth like [ 3 2 1 ] resulted in [ 1 2 ].

If that works and is a better solution go for it.

If really cared I'd implement it as primop anyway.

I still have to strip rubygems off ruby19 because packages such as hoe
require newer versions. So I'll post about my progress soon. The result
should / will be that rails can be installed using nixpkgs and some
tweaks and all gem packages can be installed with little effort
(hopefully).

Marc Weber



More information about the nix-dev mailing list