aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/tools/misc/texinfo/common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/misc/texinfo/common.nix')
-rw-r--r--nixpkgs/pkgs/development/tools/misc/texinfo/common.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/development/tools/misc/texinfo/common.nix b/nixpkgs/pkgs/development/tools/misc/texinfo/common.nix
index 1fb8a6b2f0d..f0f4c269fae 100644
--- a/nixpkgs/pkgs/development/tools/misc/texinfo/common.nix
+++ b/nixpkgs/pkgs/development/tools/misc/texinfo/common.nix
@@ -6,8 +6,13 @@
, interactive ? false, ncurses, procps
}:
+# Note: this package is used for bootstrapping fetchurl, and thus
+# cannot use fetchpatch! All mutable patches (generated by GitHub or
+# cgit) that are needed here should be included directly in Nixpkgs as
+# files.
+
let
- crossBuildTools = interactive && stdenv.hostPlatform != stdenv.buildPlatform;
+ crossBuildTools = stdenv.hostPlatform != stdenv.buildPlatform;
in
with stdenv.lib;
@@ -21,8 +26,7 @@ stdenv.mkDerivation {
inherit sha256;
};
- patches = optional (version == "6.5") ./perl.patch
- ++ optional crossBuildTools ./cross-tools-flags.patch;
+ patches = optional crossBuildTools ./cross-tools-flags.patch;
# ncurses is required to build `makedoc'
# this feature is introduced by the ./cross-tools-flags.patch