[Nix-dev] Re: Integrating a Nix expression into the set of packages

Ludovic Courtès ludo at gnu.org
Tue Oct 16 23:05:40 CEST 2007


Hi,

Michael Raskin <7c6f434c at mail.ru> writes:

> Marc Weber wrote:
>> Now you want to benefit from all-packages (thus using those dependencies
>> as arguments to your derivation without adding <your package> at the
>> place show above?
>> 
>> You can do this using the 'with' syntax
>>   with (import <path to all-packages.nix>) {}:
>>   (import <your file>) { inherit stdenv fetchurl gmp readline }

Looks like what I was looking for.  :-)

> Note: this doesn't work. all-packages.nix requires
> {system=__currentSystem;}; argument.

Which means it should read something along the lines of:

  with (import .../all-packages.nix) { system = __currentSystem }:
    ...

Correct?

Thanks,
Ludovic.




More information about the nix-dev mailing list