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,7 +1014,9 @@ let
parted = callPackage ../tools/misc/parted { }; parted = callPackage ../tools/misc/parted { };
hurdPartedCross = (callPackage ../tools/misc/parted { hurdPartedCross =
if crossSystem != null && crossSystem.config == "i586-pc-gnu"
then (callPackage ../tools/misc/parted {
# Needs the Hurd's libstore. # Needs the Hurd's libstore.
hurd = hurdCrossIntermediate; hurd = hurdCrossIntermediate;
@ -1024,7 +1026,8 @@ let
gettext = null; gettext = null;
readline = null; readline = null;
devicemapper = null; devicemapper = null;
}).hostDrv; }).hostDrv
else null;
patch = gnupatch; patch = gnupatch;