[Nix-dev] Re: [Nix-commits] SVN commit: nix - 20510 - viric - in nixpkgs/branches/stdenv-updates/pkgs: development/libraries/acl development/libraries/attr development/libraries/gettext os-specific/linux/uclibc tools/misc/coreutils top-level
Lluís Batlle
viriketo at gmail.com
Wed Mar 10 15:56:55 CET 2010
Salut,
2010/3/10 Ludovic Courtès <ludo at gnu.org>:
> Lluís Batlle <viriketo at gmail.com> writes:
>> 2010/3/10 Ludovic Courtès <ludo at gnu.org>:
>> ...
>> We have different stdenvs for different platforms, and some platforms
>> have fixed either glibc or another thing. Cross-building, it gets
>> quite flexible; there is "libcCross", and it points to either a uclibc
>> or glibc, depending on what the user chose.
>
> OK, thanks for explaining.
>
> I don’t think there’s any other case where an attribute name can refer
> to different packages, as ‘libc’ in this case. Usually attribute names
> correspond to the implementation name (e.g., ‘inetutils’, ‘nettools’),
> not to the feature provided (‘ifconfig’).
We have something called "linux". I'm thinking of getting linux 2.4
in, for cross builds.
And I have something similar with "uboot", between the usual upstream
version, and that of the sheevaplug (forked long ago, and having
difficulties to get merged into upstream).
>
>> I could have done: if (stdenv.cross.libc == "glibc"), and then take
>> libiconv as a usual input. Do you prefer this way? This would be easy.
>
> Why not. It would better reflect the intent IMO.
Ok! I will do that.
More information about the nix-dev
mailing list