[Nix-dev] More dependencies than needed

Eelco Dolstra e.dolstra at tudelft.nl
Mon Aug 25 18:01:17 CEST 2008


Ludovic Courtès wrote:

> I just noticed that my Cscope derivation contains way too many
> dependencies:
> 
>   $ nix-store -q --references result
>   /nix/store/b2gmgy8y6nidjj7n34jx4sanrjdaxrw3-glibc-2.7
...
>   /nix/store/grbjkkiaqhz5cfyps7k7f53xky55i88m-cscope-15.6
> 
> Basically, that looks like all of `stdenv', plus build-time dependencies
> like Emacs, etc., even though its build inputs are { fetchurl, stdenv,
> ncurses, pkgconfig, emacs }.
> 
> Any idea what's happening here?

Try "nix-env -q --tree" (or --graph in conjunction with dot).  It will show
where all those dependencies are coming from.  Though if you want to know which
particular file causes a dependency you'll have to use grep :-)

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



More information about the nix-dev mailing list