stutter: move overrides into configuration-nix.nix

Move necessary overrides into configuration-nix.nix, so there's no
discrepancy between stutter and haskellPackages.stutter.

However the build of stutter is still broken its dependency snipcheck
doesn't build with the pandoc version we have.
This commit is contained in:
sternenseemann
2021-05-04 14:29:55 +02:00
committed by sterni
parent 86c975b00c
commit caf7725f95
2 changed files with 8 additions and 3 deletions
@@ -841,4 +841,11 @@ self: super: builtins.intersectAttrs super {
export GHC_PACKAGE_PATH=$PWD/dist/package.conf.inplace/:$GHC_PACKAGE_PATH
'';
});
# tests need to execute the built executable
stutter = overrideCabal super.stutter (drv: {
preCheck = ''
export PATH=dist/build/stutter:$PATH
'' + (drv.preCheck or "");
});
}