[Nix-dev] add xslt to a derivation
Bjørn Forsman
bjorn.forsman at gmail.com
Thu Dec 5 07:57:15 CET 2013
On 4 December 2013 13:38, Mathijs Kwik <mathijs at bluescreen303.nl> wrote:
> $ grep 'xslt.*=' pkgs/top-level/all-packages.nix
> libxslt = callPackage ../development/libraries/libxslt { };
> docbook_xml_xslt = docbook_xsl;
>
> first result
>
>
>
> On Wed, Dec 4, 2013 at 1:31 PM, Roelof Wobben <rwobben at hotmail.com> wrote:
>> when compiling cinnamon-control-center I see this message:
>>
>> checking whether gcc understands -Wno-sign-compare... yes
>> checking what warning flags to pass to the C compiler... -Wall
>> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare
>> checking what language compliance flags to pass to the C compiler...
>> checking for X... no
>> checking for glib-mkenums...
>> /nix/store/1kh7gl673vp4zpilrvsi4cmxwk7il27n-glib-2.36.4/bin/glib-mkenums
>> checking for xsltproc... no
>> configure: error: xsltproc is required to build documentation
>> builder for
>> `/nix/store/m6mhqzk71kd6y5ci9qylsjknffcy9bqc-cinnamon-control-center-2.0.9.drv'
>> failed with exit code 1
>> error: build of
>> `/nix/store/m6mhqzk71kd6y5ci9qylsjknffcy9bqc-cinnamon-control-center-2.0.9.drv'
>> failed
>>
>>
>> but if I add xslt to the buildInputs I see that xsltproc is not known as a
>> package.
>>
>> How to solve this ?
I usually try to run the program first, because if it is available in
the channel nix will print the package name:
$ xsltproc
The program ‘xsltproc’ is currently not installed. You can install it by typing:
nix-env -i libxslt
But some packages aren't available in the channel (if their
expressions lack meta.platforms). So if the above fails I do what
Mathijs says and grep for it in the nixpkgs tree.
Best regards,
Bjørn Forsman
More information about the nix-dev
mailing list