Re: [Nix-dev] default options not working

2011-12-04 Thread Lluís Batlle i Rossell
On Sun, Dec 04, 2011 at 03:26:40PM +0100, Mathijs Kwik wrote: > ah, > I hate magic :) :) You can avoid calling callPackage, using only 'import' and passing the attributes to the function call. But callPackage also adds the overridable attribute, for changes. You can use: samba = pkgs.samba.overr

Re: [Nix-dev] default options not working

2011-12-04 Thread Mathijs Kwik
ah, I hate magic :) should have thought of that. Thanks 2011/12/4 Lluís Batlle i Rossell : > On Sun, Dec 04, 2011 at 03:22:06PM +0100, Mathijs Kwik wrote: >> installing with "nix-env -iA nixpkgs_sys.mypkgs" worked fine. >> Problem is: it should fail! >> The samba package requires a "kerberos" att

Re: [Nix-dev] default options not working

2011-12-04 Thread Lluís Batlle i Rossell
On Sun, Dec 04, 2011 at 03:22:06PM +0100, Mathijs Kwik wrote: > installing with "nix-env -iA nixpkgs_sys.mypkgs" worked fine. > Problem is: it should fail! > The samba package requires a "kerberos" attribute when useKerberos is true. > It asserts on this. > Why doesn't this work? callPackage is a

[Nix-dev] default options not working

2011-12-04 Thread Mathijs Kwik
Hi all, In my ~/.nixpkgs/config.nix I put: { packageOverrides = pkgs: rec { mypkgs = pkgs.buildEnv { name = "mypkgs"; paths = [ samba ]; }; samba = pkgs.callPackage ../.nix-defexpr/nixpkgs_sys/pkgs/servers/sa