mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
pkgs/build-support/cabal: set 'checkPhase' only if 'doCheck' is true
This commit is contained in:
parent
1dba3fe14a
commit
e779adc607
|
@ -139,14 +139,12 @@
|
|||
eval "$postBuild"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
if [ -n "$doCheck" ]; then
|
||||
eval "$preCheck"
|
||||
checkPhase = stdenv.lib.optional self.doCheck ''
|
||||
eval "$preCheck"
|
||||
|
||||
./Setup test
|
||||
./Setup test
|
||||
|
||||
eval "$postCheck"
|
||||
fi
|
||||
eval "$postCheck"
|
||||
'';
|
||||
|
||||
# installs via Cabal; creates a registration file for nix-support
|
||||
|
|
Loading…
Reference in a new issue