cabal2nix: disable test suite in 32 bit builds to fix the build

Works around https://github.com/NixOS/cabal2nix/issues/272.
This commit is contained in:
Peter Simons 2017-07-02 10:34:44 +02:00
parent 9143cc6bc0
commit e7c38c14b1

View File

@ -763,6 +763,7 @@ with pkgs;
isLibrary = false; isLibrary = false;
enableSharedExecutables = false; enableSharedExecutables = false;
executableToolDepends = [ makeWrapper ]; executableToolDepends = [ makeWrapper ];
doCheck = stdenv.is64bit; # https://github.com/NixOS/cabal2nix/issues/272
postInstall = '' postInstall = ''
exe=$out/libexec/${drv.pname}-${drv.version}/${drv.pname} exe=$out/libexec/${drv.pname}-${drv.version}/${drv.pname}
install -D $out/bin/${drv.pname} $exe install -D $out/bin/${drv.pname} $exe