Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isabelle: fix darwin build #348092

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions pkgs/by-name/is/isabelle/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down Expand Up @@ -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"}";

Expand Down Expand Up @@ -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:
Expand Down
Loading