[Nix-dev] how to overwrite a derivation in nix

phreedom at yandex.ru phreedom at yandex.ru
Fri Jan 10 14:34:39 CET 2014


On Friday, January 10, 2014 02:20:16 PM Sergey wrote:
> Hi, list! Does nixpkgs library contain a function able to overwrite an
> existing derivation? I would like the following usage pattern to be
> possible:
> 
> with pkgs; {
> 
> thunar_with_whistles = overwrite pkgs.thunar (old:{
>    patches = old.patches ++ [ ./add_whistles.patch ];
> });
> 
> }

Take a look at overrideDerivation.


More information about the nix-dev mailing list