about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/gettext
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-06-26 16:44:45 -0400
committerAlyssa Ross <hi@alyssa.is>2020-11-27 13:27:40 +0000
commit559564159b47c7d308b178b237c90d51dc4b85e7 (patch)
tree4668bee7dec92641bff51458de1ce4742643ed29 /nixpkgs/pkgs/development/libraries/gettext
parentc3a716401a7a330b83628dd524d6e7bc68c88a44 (diff)
downloadnixlib-559564159b47c7d308b178b237c90d51dc4b85e7.tar
nixlib-559564159b47c7d308b178b237c90d51dc4b85e7.tar.gz
nixlib-559564159b47c7d308b178b237c90d51dc4b85e7.tar.bz2
nixlib-559564159b47c7d308b178b237c90d51dc4b85e7.tar.lz
nixlib-559564159b47c7d308b178b237c90d51dc4b85e7.tar.xz
nixlib-559564159b47c7d308b178b237c90d51dc4b85e7.tar.zst
nixlib-559564159b47c7d308b178b237c90d51dc4b85e7.zip
treewide: add warning comment to “boot” packages
This adds a warning to the top of each “boot” package that reads:

  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.

This makes it clear to maintainer that they may need to treat this
package a little differently than others. Importantly, we can’t use
fetchpatch here due to using <nix/fetchurl.nix>. To avoid having stale
hashes, we need to include patches that are subject to changing
overtime (for instance, gitweb’s patches contain a version number at
the bottom).

(cherry picked from commit d0677e6d45c4acf9fdd3f09e77f7201794a45a82)
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/gettext')
-rw-r--r--nixpkgs/pkgs/development/libraries/gettext/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/gettext/default.nix b/nixpkgs/pkgs/development/libraries/gettext/default.nix
index 6adc147c6acc..46e52c7988e6 100644
--- a/nixpkgs/pkgs/development/libraries/gettext/default.nix
+++ b/nixpkgs/pkgs/development/libraries/gettext/default.nix
@@ -1,5 +1,10 @@
 { stdenv, lib, fetchurl, libiconv, xz, fetchpatch }:
 
+# 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.
+
 stdenv.mkDerivation rec {
   pname = "gettext";
   version = "0.20.1";