[Nix-dev] Re: Removing nulls in BuildInputs

Marc Weber marco-oweber at gmx.de
Sun Oct 24 18:03:11 CEST 2010


Which is the hack you would have to use?

mkDerivation {
} // ( if feat then { inherit extraStuff; } else {} )

compared to
mkDerivation {
  extraStuff = if feat then extraStuff else null;
}

The second is cleaner IMHO.
So removing null values in name value pairs makes sense to me.

Marc Weber



More information about the nix-dev mailing list