[Nix-dev] override xlibs.libXft
Sergey Mironov
ierton at gmail.com
Thu Aug 9 10:36:35 CEST 2012
Hello, I'm in trouble again. Here is what I try to do:
nixpkgs.config = {
packageOverrides = pkgs: {
libXft_lcd = pkgs.lib.overrideDerivation pkgs.xlibs.libXft (old :
old // { patches = [ ./libXft-2.1.14-lcd-cleartype.patch ] }
);
};
nixos says
error: cannot coerce an attribute set (except a derivation) to a string
Definition of overrideDerivation shows that the function removes some filesd
(and than sets some of them - meta and passthru - back). More, looks like it
calls overrider function recursively on hostDrv and buildDrv.
Am I using this function correctly?
2012/8/8 Sergey Mironov <ierton at gmail.com>:
> 2012/8/8 Lluís Batlle i Rossell <viric at viric.name>:
>> On Wed, Aug 08, 2012 at 02:10:44AM +0400, Sergey Mironov wrote:
>>> Why is that? libXft looks like a typical result of mkDerivation but don't have
>>> an override function - probably I am missing something. How to override then?
>>
>> The override function is provided by 'callPackage', not mkDerivation.
>>
>> How to override then? there is pkgs.lib.overrideDerivation for example. :)
>>
>> Regards,
>> Lluís.
>
> Ah, right, many thanks!
>
> Sergey
More information about the nix-dev
mailing list