Add add-overrides.nix

This commit is contained in:
Leon P Smith 2020-07-02 13:34:11 -04:00
parent 2093f3fe12
commit 35da7fd6df
No known key found for this signature in database
GPG Key ID: 85552BD6000BD0F8

View File

@ -0,0 +1,20 @@
{ nixpkgs }: testPackage:
nixpkgs.haskell.lib.overrideCabal testPackage
(drv: {
# The headless browser run as part of the tests will exit without this
preBuild = ''
export HOME="$PWD"
'';
testSystemDepends = with nixpkgs; (drv.testSystemDepends or []) ++ [
selenium-server-standalone which
chromium
nixpkgs.iproute
];
# The headless browser run as part of gc tests would hang/crash without this
preCheck = ''
export FONTCONFIG_PATH=${nixpkgs.fontconfig.out}/etc/fonts
'';
})