isabelle: fix build on MacOS

This commit is contained in:
Jan van Brügge 2022-12-06 15:55:35 +00:00
parent 26c369214e
commit 698c7342b7
No known key found for this signature in database
GPG Key ID: 88E0BF7B7A546481

View File

@ -69,13 +69,14 @@ in stdenv.mkDerivation (finalAttrs: rec {
buildInputs = [ polyml veriT vampire eprover-ho nettools ]
++ lib.optionals (!stdenv.isDarwin) [ java ];
sourceRoot = dirname;
sourceRoot = "${dirname}${lib.optionalString stdenv.isDarwin ".app"}";
doCheck = true;
checkPhase = "bin/isabelle build -v HOL-SMT_Examples";
postUnpack = lib.optionalString stdenv.isDarwin ''
mv $sourceRoot.app $sourceRoot
mv $sourceRoot ${dirname}
sourceRoot=${dirname}
'';
postPatch = ''