[prev in list] [next in list] [prev in thread] [next in thread]
List: nix-dev
Subject: [Nix-dev] libiconv on non-GNU systems
From: e.dolstra () tudelft ! nl (Eelco Dolstra)
Date: 2010-10-19 9:04:58
Message-ID: 4CBD5F3A.2080802 () tudelft ! nl
[Download RAW message or body]
Hi,
On 10/18/2010 06:45 AM, Yury G. Kudryashov wrote:
> # grep libiconv all-packages.nix
> libiconv = if stdenv.isDarwin then libiconv else null;
> zlib curl gd postgresql openssl pkgconfig sqlite getConfig libiconv
> libjpeg libpng;
> libiconv = if (stdenv.system == "i686-freebsd") then libiconv else null;
> libiconv = if stdenv.system == "i686-freebsd" then libiconv else null;
> libiconv = if stdenv.system == "i686-freebsd" then libiconv else null;
> libiconv = callPackage ../development/libraries/libiconv { };
>
> Which test should be used instead of all these? I'm going to unify all these
> tests into something like
>
> libiconvPkg = callPackage ...;
> libiconv = if ... then libiconvPkg else stdenv.gcc.libc;
>
> Then use libiconv everywhere else without re-checking.
Yes, though I would prefer to call the virtual package "iconv" to distinguish it
from the real "libiconv". So
libiconv = callPackage ...;
iconv = if ... then libiconv else stdenv.gcc.libc;
--
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic