Hi,

Michael Raskin <[EMAIL PROTECTED]> 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.

_______________________________________________
nix-dev mailing list
nix-dev@cs.uu.nl
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to