aeron-cpp: fix build on darwin
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
cmake,
|
cmake,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
fetchMavenArtifact,
|
fetchMavenArtifact,
|
||||||
|
fixDarwinDylibNames,
|
||||||
jdk11,
|
jdk11,
|
||||||
lib,
|
lib,
|
||||||
libbsd,
|
libbsd,
|
||||||
@@ -54,11 +55,16 @@ stdenv.mkDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoPatchelfHook
|
|
||||||
cmake
|
cmake
|
||||||
jdk11
|
jdk11
|
||||||
makeWrapper
|
makeWrapper
|
||||||
patchelf
|
patchelf
|
||||||
|
]
|
||||||
|
++ lib.optionals stdenv.isLinux [
|
||||||
|
autoPatchelfHook
|
||||||
|
]
|
||||||
|
++ lib.optionals stdenv.isDarwin [
|
||||||
|
fixDarwinDylibNames
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
@@ -113,6 +119,12 @@ stdenv.mkDerivation {
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
|
for lib in $out/lib/*.dylib; do
|
||||||
|
install_name_tool -change "@rpath/$(basename $lib)" "$lib" "$out/bin/aeronmd"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Aeron Messaging C++ Library";
|
description = "Aeron Messaging C++ Library";
|
||||||
homepage = "https://aeron.io/";
|
homepage = "https://aeron.io/";
|
||||||
|
|||||||
Reference in New Issue
Block a user