mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
haskellPackages.spacecookie: enable extra tests, install man pages
Add an override to configuration-common.nix adding the following features to the derivation: * Let test suite discover the built spacecookie binary, so it doesn't skip integration tests (which are very cheap and take just over 1s). * Install man pages shipped in the sdist. (If someone is eager to get rid of this override feel free to explain to me how to achieve this without a Custom build-type which pulls in thousands of modules from Cabal. :p)
This commit is contained in:
parent
c76cb7cbb9
commit
b8c710490c
@ -1664,4 +1664,16 @@ self: super: {
|
||||
# Test suite does not compile.
|
||||
feed = dontCheck super.feed;
|
||||
|
||||
spacecookie = overrideCabal super.spacecookie (old: {
|
||||
buildTools = (old.buildTools or []) ++ [ pkgs.installShellFiles ];
|
||||
# let testsuite discover the resulting binary
|
||||
preCheck = ''
|
||||
export SPACECOOKIE_TEST_BIN=./dist/build/spacecookie/spacecookie
|
||||
'' + (old.preCheck or "");
|
||||
# install man pages shipped in the sdist
|
||||
postInstall = ''
|
||||
installManPage docs/man/*
|
||||
'' + (old.postInstall or "");
|
||||
});
|
||||
|
||||
} // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super
|
||||
|
Loading…
Reference in New Issue
Block a user