mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
isabelle: fix darwin build (#348092)
This commit is contained in:
commit
ad347ac376
@ -30,14 +30,11 @@ let
|
||||
hash = "sha256-DB/ETVZhbT82IMZA97TmHG6gJcGpFavxDKDTwPzIF80=";
|
||||
};
|
||||
|
||||
buildPhase = (if stdenv.hostPlatform.isDarwin then ''
|
||||
LDFLAGS="-dynamic -undefined dynamic_lookup -lSystem"
|
||||
'' else ''
|
||||
LDFLAGS="-fPIC -shared"
|
||||
'') + ''
|
||||
buildPhase = ''
|
||||
CFLAGS="-fPIC -I."
|
||||
LDFLAGS="-fPIC -shared"
|
||||
$CC $CFLAGS -c sha1.c -o sha1.o
|
||||
$LD $LDFLAGS sha1.o -o libsha1.so
|
||||
$CC $LDFLAGS sha1.o -o libsha1.so
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
@ -73,8 +70,9 @@ in stdenv.mkDerivation (finalAttrs: rec {
|
||||
|
||||
nativeBuildInputs = [ java ];
|
||||
|
||||
buildInputs = [ polyml veriT vampire eprover-ho nettools ]
|
||||
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ java procps ];
|
||||
buildInputs = [ polyml veriT vampire eprover-ho nettools ];
|
||||
|
||||
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ procps ];
|
||||
|
||||
sourceRoot = "${dirname}${lib.optionalString stdenv.hostPlatform.isDarwin ".app"}";
|
||||
|
||||
@ -221,7 +219,6 @@ in stdenv.mkDerivation (finalAttrs: rec {
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.jwiegley maintainers.jvanbruegge ];
|
||||
platforms = platforms.unix;
|
||||
broken = stdenv.hostPlatform.isDarwin;
|
||||
};
|
||||
|
||||
passthru.withComponents = f:
|
||||
|
Loading…
Reference in New Issue
Block a user