···1919 # remaps /etc/passwd to a trivial file, but we can't do that on Darwin so I do this
2020 # instead. In this case, I pass in the very imaginative "submitter" as the submitter name
21212222- patchPhase = let
2222+ patches = [
2323+ # CVE-2018-1000097
2424+ (fetchurl {
2525+ url = "https://sources.debian.org/data/main/s/sharutils/1:4.15.2-2+deb9u1/debian/patches/01-fix-heap-buffer-overflow-cve-2018-1000097.patch";
2626+ sha256 = "19g0sxc8g79aj5gd5idz5409311253jf2q8wqkasf0handdvsbxx";
2727+ })
2828+ ];
2929+3030+ postPatch = let
2331 # This evaluates to a string containing:
2432 #
2533 # substituteInPlace tests/shar-2 --replace '${SHAR}' '${SHAR} -s submitter'