[Nix-dev] default options not working
Lluís Batlle i Rossell
viric at viric.name
Sun Dec 4 15:28:28 CET 2011
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.override { useKerberos = true; };
Regards,
Lluís.
> 2011/12/4 Lluís Batlle i Rossell <viric at viric.name>:
> > 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 clever thing, that fills the required attributes of the
> > function parameter. It fills the kerberos too.
> >
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list