haskellPackages.HTF: attempt to fix test suite on darwin

A script used at test time in HTF assumes that you have GNU coreutils
installed in a manner where all executables are prefixed with a `g`.
Since we use GNU coreutils in the stdenv anyways, this is not necessary
and needs to be patched out.
This commit is contained in:
sternenseemann 2021-05-09 01:41:11 +02:00
parent 15052e0c90
commit 227cfc24fe

View File

@ -161,4 +161,11 @@ self: super: {
] ++ (drv.librarySystemDepends or []);
});
HTF = overrideCabal super.HTF (drv: {
# GNU find is not prefixed in stdenv
postPatch = ''
substituteInPlace scripts/local-htfpp --replace "find=gfind" "find=find"
'' + (drv.postPatch or "");
});
}