Re: [Nix-dev] Difference between Pkgs, Super and Self in this Snippet

2016-04-13 Thread Nicolas Pierron
On Mon, Apr 11, 2016 at 7:34 AM, Roger Qiu wrote: > ``` > { pkgs }: { # pkgs is the fully configured packages, after overrides >packageOverrides = super: let self = super.pkgs; in rec { # super is > without overrides, self is with > # ... overrides go here ... >

Re: [Nix-dev] few questions before migrating from Debian…

2016-04-13 Thread Thomas Sigurdsen
As a nixos newbie I'll weigh in. Installed nixos during the previous weekend, having been on gentoo for some years. There's been some getting used to the nix language, and defining everything in the .nix configs instead of files in /etc/. Also, systemd is a strange beast; not sure how I feel

[Nix-dev] KDE 5 startup broken in unstable channel and Nixpkgs master

2016-04-13 Thread Thomas Tuegel
Hello nix-dev, As the KDE 5 maintainer, I am issuing a warning that the KDE 5 startup sequence is broken in Nixpkgs master and probably in the unstable channel, too. If you are a KDE 5 user, I recommend that you use with NixOS 16.03 for now. I haven't updated the KDE packages since the 16.03

Re: [Nix-dev] Trying to implement quicksort in nix...

2016-04-13 Thread Matthias Beyer
Ah, okay... there was my fault. Thank you! On 13-04-2016 22:08:08, Eric Sagnes wrote: > The following seems to work: > > ``` > let > qs = l: > if l == [] then [] > else > with builtins; > let x = head l; > xs = tail l; > low = filter (a: a < x) xs; >

Re: [Nix-dev] Trying to implement quicksort in nix...

2016-04-13 Thread Eric Sagnes
The following seems to work: ``` let qs = l: if l == [] then [] else with builtins; let x = head l; xs = tail l; low = filter (a: a < x) xs; high = filter (a: a >= x) xs; in low ++ [x] ++ high; in qs [3 4 1 2] ``` I think you get

[Nix-dev] Trying to implement quicksort in nix...

2016-04-13 Thread Matthias Beyer
Hi, I struggle implementing quicksort in the nix expression language... maybe one of you gurus can help me? Here's what I have so far: let len= xs: builtins.length xs; fst= xs: builtins.head xs; lower = x: xs: builtins.filter (a: a < x) xs; higher =

Re: [Nix-dev] few questions before migrating from Debian…

2016-04-13 Thread Saša Janiška
Vladimír Čunát writes: > It's these various quirks, I believe. Mostly less important edge cases. > They come from having much less testers and contributors than Debian > (for example) and from deviating on some commonly assumed points, e.g. > shared directories for all plugins

Re: [Nix-dev] ANN: closure-size hitting master

2016-04-13 Thread Vladimír Čunát
On 04/13/2016 10:32 AM, stewart mackenzie wrote: > On Wed, Apr 13, 2016 at 4:02 PM, Vladimír Čunát wrote: >> What kind of numbers? (on what?) > > numbers on closure size reduction When I measured a few months ago, I came with these nice examples: – gtk2 libs: 520 -> 120 MB,

Re: [Nix-dev] ANN: closure-size hitting master

2016-04-13 Thread stewart mackenzie
On Wed, Apr 13, 2016 at 4:02 PM, Vladimír Čunát wrote: > What kind of numbers? (on what?) numbers on closure size reduction ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] ANN: closure-size hitting master

2016-04-13 Thread Vladimír Čunát
On 04/13/2016 09:53 AM, stewart mackenzie wrote: > On 13 Apr 2016 15:41, "Vladimír Čunát" wrote: >> For example, the texlive change had more impact on me in this respect, >> as depending on TeX stuff is rather seldom and mostly through executing >> TeX utilities. > > Do you

Re: [Nix-dev] few questions before migrating from Debian…

2016-04-13 Thread Vladimír Čunát
On 04/09/2016 09:59 PM, Saša Janiška wrote: >> I wouldn't recommend NixOS to non-developers, our stable releases are >> still a lot less stable than Debian testing. > > In which sense is that ’less stability’ manifested? It's these various quirks, I believe. Mostly less important edge cases.

Re: [Nix-dev] ANN: closure-size hitting master

2016-04-13 Thread Vladimír Čunát
It's in master now! It seems to bring a few hundred build regressions, but that shouldn't be a problem to resolve within several weeks. > This is awesome, really a milestone :-) The reductions seem large on some packages, but personally I was rather disappointed by the fact that my desktop has

Re: [Nix-dev] PolicyKit timeout after upgrade to 16.03

2016-04-13 Thread 4levels
Hi Nix'ers, No one? Im I the only one who's experiencing this? This timeout still occurs and makes every call to systemctl at least 30 seconds slower, pretty annoying actually.. Hope someone with understanding can shed some light on what might be going on here. Erik On Tue, Apr 12, 2016 at