[Nix-dev] Using Nix with external (but 'pure') dependencies

Luca Bruno lethalman88 at gmail.com
Wed Jan 14 18:30:57 CET 2015


On 14/01/2015 18:17, Ben Darwin wrote:
>
> You can't recompile those BLAS and LAPACK with the intel compiler using nix?
>
> In principle yes, but (a) wouldn't we encounter the same problem
> writing a Nix expression for icc, since it's only available to us as
> a binary on the system? (b) we'd need to find out the various
> optimization flags enabled on this particular system from the admins,
> who might frown on this project, and as a new user it's not clear whether
> the existing exprs for these libraries allow this configuration (or even use
> of non-gcc compilers).
I understand. Well, maybe to some degree it's possible to use such
libraries. The first thing that comes to my mind is simply cp -rf
${./yourlibdir} $out, so that in $out you have include/, lib/, etc..
Then run a couple of patchelf. But are the programs going to be compiled
with gcc or icc?



More information about the nix-dev mailing list