GNU Parted: Don't depend on device-mapper on non-Linux platforms.

svn path=/nixpkgs/trunk/; revision=17216
This commit is contained in:
Ludovic Courtès 2009-09-17 08:00:26 +00:00
parent c3fe985546
commit 75937c640e

View File

@ -8,7 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "02amqpzl8lgk247cjsbaz1nsiz9i1pbj0adx0z109h94p90i48sk";
};
buildInputs = [ devicemapper libuuid gettext readline ];
buildInputs = [ libuuid gettext readline ] ++
stdenv.lib.optional stdenv.isLinux devicemapper;
# XXX: For some reason our libreadline.so doesn't have libncurses as
# NEEDED and `configure' links with `-Wl,--as-needed' so when