diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 74550f2ce15..da0b5a67a21 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1014,17 +1014,20 @@ let parted = callPackage ../tools/misc/parted { }; - hurdPartedCross = (callPackage ../tools/misc/parted { - # Needs the Hurd's libstore. - hurd = hurdCrossIntermediate; + hurdPartedCross = + if crossSystem != null && crossSystem.config == "i586-pc-gnu" + then (callPackage ../tools/misc/parted { + # Needs the Hurd's libstore. + hurd = hurdCrossIntermediate; - # The Hurd wants a libparted.a. - enableStatic = true; + # The Hurd wants a libparted.a. + enableStatic = true; - gettext = null; - readline = null; - devicemapper = null; - }).hostDrv; + gettext = null; + readline = null; + devicemapper = null; + }).hostDrv + else null; patch = gnupatch;