git.iko.soy/typeable/nixpkgs
on master help sign in
haskellPackages.intero: fix tests (thanks @rvl)
commitfcb0023e8030074f140c69013a6b339880cd24de authorobadz <obadz-git@obadz.com> dateThu 9 Jun 2016, 08:51 (10 years ago) parenta357edc
1 file changed+7−3
pkgs/development/haskell-modules/configuration-common.nix+7−3
pkgs/development/haskell-modules/configuration-common.nix+7−3
@@ -1027,13 +1027,17 @@ self: super: {
10271027 cairo = addBuildTool super.cairo self.gtk2hs-buildtools;
10281028 pango = addBuildTool super.pango self.gtk2hs-buildtools;
10291029
1030− # Tests fail with "Couldn't launch intero process."
1031− intero = dontCheck super.intero;
1030+ # Fix tests which would otherwise fail with "Couldn't launch intero process."
1031+ intero = overrideCabal super.intero (drv: {
1032+ postPatch = (drv.postPatch or "") + ''
1033+ substituteInPlace src/test/Main.hs --replace "\"intero\"" "\"$PWD/dist/build/intero/intero\""
1034+ '';
1035+ });
10321036
10331037 # libmpd has an upper-bound on time which doesn't seem to be a real build req
10341038 libmpd = dontCheck (overrideCabal super.libmpd (drv: {
10351039 postPatch = (drv.postPatch or "") + ''
1036− substituteInPlace ./libmpd.cabal --replace "time >=1.5 && <1.6" "time >=1.5"
1040+ substituteInPlace libmpd.cabal --replace "time >=1.5 && <1.6" "time >=1.5"
10371041 '';
10381042 }));
10391043}