[Nix-dev] Ghostscript variant

Eelco Dolstra e.dolstra at tudelft.nl
Thu May 26 21:41:26 CEST 2011


Hi,

On 05/26/2011 05:24 PM, Ludovic Courtès wrote:

>> Really? I like getConfig.
>
> Well, ‘callPackage’ automatically does ‘makeOverrideable’, which adds a
> ‘.override’ function to the derivation, which can be used to do almost
> anything.  So I think the current trend is to add:
>
>    ghostscript = pkgs.ghostscript.override { foo = bar; }
>
> in your ~/.nixpkgs/config.nix.

Right, this is preferrable because it doesn't require a zillion 
getConfig calls in all-packages.nix.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list