Parted (cross-GNU): Only refer to `.hostDrv' when cross-building.

svn path=/nixpkgs/branches/stdenv-updates/; revision=25090
This commit is contained in:
Ludovic Courtès 2010-12-12 23:35:10 +00:00
parent 65e0e4dd68
commit 2ad6c9c6c2

View File

@ -1014,17 +1014,20 @@ let
parted = callPackage ../tools/misc/parted { }; parted = callPackage ../tools/misc/parted { };
hurdPartedCross = (callPackage ../tools/misc/parted { hurdPartedCross =
# Needs the Hurd's libstore. if crossSystem != null && crossSystem.config == "i586-pc-gnu"
hurd = hurdCrossIntermediate; then (callPackage ../tools/misc/parted {
# Needs the Hurd's libstore.
hurd = hurdCrossIntermediate;
# The Hurd wants a libparted.a. # The Hurd wants a libparted.a.
enableStatic = true; enableStatic = true;
gettext = null; gettext = null;
readline = null; readline = null;
devicemapper = null; devicemapper = null;
}).hostDrv; }).hostDrv
else null;
patch = gnupatch; patch = gnupatch;