Re: [Nix-dev] another style proposal

2010-04-06 Thread Eelco Dolstra
Hi, Yury G. Kudryashov wrote: In all-packages.nix: mypkg = makeOverridable (import ../path/to/mypkg) ( pkgs // { cg = getPkgConfig mypkg; } ); In mypkg/default.nix: a: let inherit (a) stdenv fetchurl other things cg; inherit (a.gtkLibs) gtk glib; I'm really not in favour of

Re: [Nix-dev] nixUnstable nix-instantiate segfault for a nixos

2010-04-06 Thread Eelco Dolstra
Hi, Lluís Batlle wrote: I run a x86_64-linux, and nix-instantiate fails (now segfault, now 'throw', now 'assertion failed, ...) evaluating the system derivation. I think I've fixed this (or rather, worked around it). The crash seems to be triggered by r20929 (which passes all of Nixpkgs to

Re: [Nix-dev] hydra problems (again)?

2010-04-06 Thread Eelco Dolstra
Hi, Lluís Batlle wrote: Here a build passed from SUCCEED to FAILED: http://hydra.nixos.org/build/341461 The build log, nevertheless, says at the end: Shared connection to kenny closed. build of `/nix/store/0na0z61a3kznxijs3856g100aj1ryi4l-mpfr-2.4.2.drv' on `buildf...@kenny' succeeded

[Nix-dev] Re: another style proposal

2010-04-06 Thread Yury G. Kudryashov
Eelco Dolstra wrote: However, I think a better solution to reducing the duplication is to keep the formal function arguments, and call the function in all-packages.nix automatically (that is, with all expected arguments inherited automatically from `pkgs'). This is possible since Nix 0.14.

Re: [Nix-dev] nixUnstable nix-instantiate segfault for a nixos

2010-04-06 Thread Lluís Batlle
2010/4/6 Eelco Dolstra e.dols...@tudelft.nl: Hi, Lluís Batlle wrote: I run a x86_64-linux, and nix-instantiate fails (now segfault, now 'throw', now 'assertion failed, ...) evaluating the system derivation. I think I've fixed this (or rather, worked around it).  The crash seems to be

Re: [Nix-dev] nixUnstable nix-instantiate segfault for a nixos

2010-04-06 Thread Eelco Dolstra
Hi, Lluís Batlle wrote: I tried with both i686 and x86_64 nixUnstable. I've only encountered this problem on x86_64... I installed the i686-linux nix, and I run its nix-instantiate in it. I saw the same symptoms. Yes, the i686-linux machine on which I tried it happened to have the