Merge pull request #102774 from gebner/fix-lean-build

lean: build olean files
This commit is contained in:
Gabriel Ebner 2020-11-04 17:12:42 +01:00 committed by GitHub
commit 0aaf9d6143
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,9 +15,13 @@ stdenv.mkDerivation rec {
buildInputs = [ gmp ];
enableParallelBuilding = true;
preConfigure = ''
cd src
'';
cmakeDir = "../src";
# Running the tests is required to build the *.olean files for the core
# library.
doCheck = true;
postPatch = "patchShebangs .";
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace $out/bin/leanpkg \