freeimage: fetchpatch -> fetchurl

These aren't generated patches, so there's no benefit in fetchpatch.
/cc #30729.

+10 -8
+10 -8
pkgs/development/libraries/freeimage/default.nix
··· 1 - { stdenv, fetchpatch, fetchurl, unzip, darwin }: 1 + { stdenv, fetchurl, unzip, darwin }: 2 2 3 3 stdenv.mkDerivation { 4 4 name = "freeimage-3.17.0"; ··· 8 8 sha256 = "12bz57asdcfsz3zr9i9nska0fb6h3z2aizy412qjqkixkginbz7v"; 9 9 }; 10 10 11 - patches = [ 12 - (fetchpatch { 13 - url = "https://anonscm.debian.org/cgit/debian-science/packages/freeimage.git/plain/debian/patches/Fix-CVE-2015-0852.patch"; 14 - sha256 = "0qkb96mvvhji75gz7dma3vj2b71smp96z3kl2ydj6skvnw6slnmc"; 11 + patches = let 12 + patchURL = https://anonscm.debian.org/cgit/debian-science/packages/freeimage.git/plain/debian/patches; 13 + in [ 14 + (fetchurl { 15 + url = patchURL + "/Fix-CVE-2015-0852.patch"; 16 + sha256 = "1vxdck4i5qi5j6i3cjja0gfy79mmbf0lq2qdrnqdsl4kclbvw2c8"; 15 17 }) 16 - (fetchpatch { 17 - url = "https://anonscm.debian.org/cgit/debian-science/packages/freeimage.git/plain/debian/patches/Fix-CVE-2016-5684.patch"; 18 - sha256 = "18g5ckrvqfjcldis7zf7hmfl8b3mgnc6akd6x3cdq8c5j7l1y98f"; 18 + (fetchurl { 19 + url = patchURL + "/Fix-CVE-2016-5684.patch"; 20 + sha256 = "14ffgqbnwg28r6sjvm3z89zbnnm9ghbc81hdhrzxlyk3vwvd6cw3"; 19 21 }) 20 22 ]; 21 23