3
0
Fork 0
forked from mirrors/nixpkgs

haskellPackages.intero: fix tests (thanks @rvl)

This commit is contained in:
obadz 2016-06-09 08:51:40 +01:00
parent a357edc0c6
commit fcb0023e80

View file

@ -1027,13 +1027,17 @@ self: super: {
cairo = addBuildTool super.cairo self.gtk2hs-buildtools;
pango = addBuildTool super.pango self.gtk2hs-buildtools;
# Tests fail with "Couldn't launch intero process."
intero = dontCheck super.intero;
# Fix tests which would otherwise fail with "Couldn't launch intero process."
intero = overrideCabal super.intero (drv: {
postPatch = (drv.postPatch or "") + ''
substituteInPlace src/test/Main.hs --replace "\"intero\"" "\"$PWD/dist/build/intero/intero\""
'';
});
# libmpd has an upper-bound on time which doesn't seem to be a real build req
libmpd = dontCheck (overrideCabal super.libmpd (drv: {
postPatch = (drv.postPatch or "") + ''
substituteInPlace ./libmpd.cabal --replace "time >=1.5 && <1.6" "time >=1.5"
substituteInPlace libmpd.cabal --replace "time >=1.5 && <1.6" "time >=1.5"
'';
}));
}