nixpkgs/pkgs/tools/text
Chuck 2327204ad0 gnupatch: Don't fetch from cgit URLs with unstable hashes
cgit cannot serve patches with stable hashes, so store these patches
in-tree.  cgit community discussion about this problem:
https://lists.zx2c4.com/pipermail/cgit/2017-February/003470.html

We pull the patches in-tree rather than strip cgit footers with fetchpatch
because per https://github.com/NixOS/nixpkgs/pull/61471#issuecomment-493218587
dependencies of fetchpatch cannot use fetchpatch.

Verification that the only difference between the live page, the
patch committed here, and the version cached under the old hash at
tarballs.nixos.org is the cgit version footer:

$ curl -s -L http://tarballs.nixos.org/sha256/"$(nix-hash --type sha256 --to-base16 0iw0lk0yhnhvfjzal48ij6zdr92mgb84jq7fwryy1hdhi47hhq64)" > Allow_input_files_to_be_missing_for_ed-style_patches.patch
$ diff -U0 --label cgit-live <( curl -s -L https://git.savannah.gnu.org/cgit/patch.git/patch/?id=b5a91a01e5d0897facdd0f49d64b76b0f02b43e1 ) Allow_input_files_to_be_missing_for_ed-style_patches.patch
--- cgit-live
+++ Allow_input_files_to_be_missing_for_ed-style_patches.patch  2020-01-29 17:22:00.077312937 -0800
@@ -32 +32 @@
-cgit v1.2.1
+cgit v1.0-41-gc330

$ curl -s -L http://tarballs.nixos.org/sha256/"$(nix-hash --type sha256 --to-base16 1bpy16n3hm5nv9xkrn6c4wglzsdzj3ss1biq16w9kfv48p4hx2vg)" > CVE-2018-1000156.patch
$ diff -U0 --label cgit-live <( curl -s -L https://git.savannah.gnu.org/cgit/patch.git/patch/?id=123eaff0d5d1aebe128295959435b9ca5909c26d ) CVE-2018-1000156.patch
--- cgit-live
+++ CVE-2018-1000156.patch      2020-01-29 17:23:41.021116969 -0800
@@ -210 +210 @@
-cgit v1.2.1
+cgit v1.0-41-gc330
2020-01-30 14:23:33 -08:00
..
a2ps
agrep treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
aha
amber amber: 0.5.2 -> 0.5.3 2019-12-01 12:05:04 -08:00
ansifilter treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
ascii
bcat
boxes boxes: init at 1.3 2019-11-30 16:06:04 +01:00
catdoc maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
catdocx
cconv
codesearch
colordiff
coloursum coloursum: fix darwin build 2019-11-09 22:50:05 +02:00
convertlit
copyright-update
csvkit csvkit: fix failing test 2019-09-13 15:29:32 +02:00
dadadodo
diction
diffr diffr: init at 0.1.2 2019-09-26 11:46:13 +01:00
diffstat diffstat: 1.62 -> 1.63 2019-12-08 12:58:58 +01:00
diffutils
discount maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
dos2unix maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
ebook-tools
enca
enscript
epubcheck
esh
fanficfare Merge pull request #78078 from r-ryantm/auto-update/FanFicFare 2020-01-21 07:48:00 -08:00
gawk gawk: *Flags are lists 2019-12-30 11:13:38 +01:00
gist
glogg
gnugrep
gnupatch gnupatch: Don't fetch from cgit URLs with unstable hashes 2020-01-30 14:23:33 -08:00
gnused gnused: 4.7 -> 4.8 2020-01-16 21:40:10 +00:00
grin
grip-search grip-search: init at 0.8 2019-11-14 22:11:58 +01:00
groff groff: Fix cross-compilation 2019-11-08 22:05:49 -05:00
gtranslator gtranslator: 3.32.1 → 3.34.0 2019-10-27 22:28:33 -07:00
gucci
highlight maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
html-tidy
html2text
hyx
icdiff icdiff: 1.9.4 -> 1.9.5 2019-09-26 14:47:06 -07:00
invoice2data treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
ispell ispell: 3.3.02 -> 3.4.00 2019-08-31 13:35:46 -06:00
jsawk treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
jumanpp
kakasi
kdiff3 kdiff3: fix build 2019-11-22 17:41:47 +01:00
kytea maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
languagetool languagetool: 4.7 -> 4.8 2020-01-21 19:51:48 +00:00
link-grammar link-grammar: 5.6.2 -> 5.7.0 2019-09-26 19:25:36 -07:00
lv lv: init at 4.51 2019-09-08 11:54:16 +09:00
mairix
markdown-pp
mawk mawk: 1.3.4-20190203 -> 1.3.4-20200106 2020-01-22 13:27:27 +01:00
mb2md
mdbook mdbook: 0.3.1 -> 0.3.5 2019-11-23 18:47:22 -08:00
mdcat mdcat: 0.14.0 -> 0.15.0 2020-01-14 16:42:15 +01:00
mecab treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
miller miller: 5.5.0 -> 5.6.2 2019-09-23 15:06:30 +02:00
mir-qualia
mpage
multitran treewide: NIX_*_FLAGS -> string 2019-12-31 00:16:46 +01:00
namazu
nawk
nkf
numdiff maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
ocrmypdf ocrmypdf: 9.4.0 -> 9.5.0 2020-01-21 18:17:30 -06:00
odt2txt
opencc treewide: Fix unsafe concatenation of $LD_LIBRARY_PATH 2020-01-15 09:47:03 +01:00
papertrail Treewide: fix URL permanent redirects 2019-11-16 01:41:23 +01:00
par par: use pname 2019-11-25 23:27:58 -05:00
patchutils Merge staging-next into staging 2019-08-31 18:07:33 +02:00
peco
platinum-searcher
podiff treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
poedit poedit: 2.2.1 -> 2.2.4 2019-10-07 18:55:17 -07:00
popfile
proselint
qgrep qgrep: fix darwin and aarch64-linux build 2019-12-28 17:20:06 +01:00
qprint
qshowdiff
reckon treewide: fix types for mkDerivation params 2019-12-31 01:23:19 +01:00
recode recode: 3.7.4 -> 3.7.6, use python3 2019-11-14 13:20:55 +01:00
replace treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
ripgrep treewide: update which packages I'm currently maintaining 2019-12-26 15:27:47 +01:00
ripgrep-all treewide: update which packages I'm currently maintaining 2019-12-26 15:27:47 +01:00
rpl
rst2html5
ruby-zoom
ruplacer ruplacer: init at 0.4.1 2019-11-07 13:31:51 +02:00
schema2ldif
sd
sgml treewide: NIX_*_FLAGS -> string 2019-12-31 00:15:46 +01:00
shab treewide: remove uses of doBuild and doConfigure 2019-09-02 23:42:12 +02:00
shfmt shfmt: 2.6.4 -> 3.0.1 (#77537) 2020-01-11 23:33:16 -08:00
shocco
sift
silver-searcher treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
smu smu: Do not use DESTDIR 2019-12-29 21:06:02 +01:00
snippetpixie treewide: pantheon updateScript 2019-12-22 18:20:55 -05:00
source-highlight sourceHighlight: 3.1.8 -> 3.1.9 2019-11-13 18:41:39 +01:00
staccato treewide: name -> pname (#67513) 2019-08-31 07:41:22 -04:00
tab tab: init at 7.2 2019-10-20 13:38:13 -07:00
transifex-client transifex-client: Fix build 2019-11-01 07:54:31 +01:00
txt2tags
uni2ascii
unoconv unoconv: fixing sha256 2020-01-25 10:57:51 +01:00
unrtf
untex treewide: installFlags is a list 2019-12-30 13:22:43 +01:00
vale vale: use buildGoPackage 2019-09-21 04:20:00 -05:00
wdiff
wgetpaste maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
xidel
xml sablotron: remove 2019-11-08 22:25:08 +01:00
xsv treewide: name -> pname (#67513) 2019-08-31 07:41:22 -04:00
xurls maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
yaml-merge treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
zimreader treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
zimwriterfs