2023-03-24 00:07:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
2024-01-02 11:29:13 +00:00
|
|
|
fetchMavenArtifact,
|
2023-03-24 00:07:29 +00:00
|
|
|
jdk11,
|
2024-01-02 11:29:13 +00:00
|
|
|
makeWrapper
|
2023-03-24 00:07:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "aeron";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.44.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
groupId = "io.aeron";
|
|
|
|
|
|
|
|
aeronAll_1_40_0 = fetchMavenArtifact {
|
|
|
|
inherit groupId;
|
|
|
|
version = "1.40.0";
|
|
|
|
artifactId = "aeron-all";
|
|
|
|
hash = "sha512-NyhYaQqOWcSBwzwpje6DMAp36CEgGSNXBSdaRrDyP+Fn2Z0nvh5o2czog6GKKtbjH9inYfyyF/21gehfgLF6qA==";
|
|
|
|
};
|
2023-03-24 00:07:29 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
aeronSamples_1_40_0 = fetchMavenArtifact {
|
|
|
|
inherit groupId;
|
|
|
|
version = "1.40.0";
|
|
|
|
artifactId = "aeron-samples";
|
|
|
|
hash = "sha512-vyAq4mfLDDyaVk7wcIpPvPcxSt92Ek8mxfuuZwaX+0Wu9oJCpwbnjvS9+bvzcE4qSGxzY6eJIIX6nMdw0LkACg==";
|
|
|
|
};
|
|
|
|
|
|
|
|
aeronAll_1_42_1 = fetchMavenArtifact {
|
|
|
|
inherit groupId;
|
|
|
|
artifactId = "aeron-all";
|
|
|
|
version = "1.42.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha512-pjX+JopK6onDwElMIroj+ZXrKwdPj5H2uPg08XgNlrK1rAkHo9MUT8weBGbuFVFDLeqOZrHj0bt1wJ9XgYY5aA==";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
aeronSamples_1_42_1 = fetchMavenArtifact {
|
2024-01-02 11:29:13 +00:00
|
|
|
inherit groupId;
|
|
|
|
version = "1.42.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
artifactId = "aeron-samples";
|
|
|
|
hash = "sha512-4JnHn22vJf2lmOg6ev5PD+/YiaL3KgfuyWAK92djX3KBVXO7ERMY2kH79dveVCJG1rbekvE1j1pnjaAIxwJcqg==";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
aeronAll_1_43_0 = fetchMavenArtifact {
|
2024-01-02 11:29:13 +00:00
|
|
|
inherit groupId;
|
2024-04-21 15:54:59 +00:00
|
|
|
artifactId = "aeron-all";
|
|
|
|
version = "1.43.0";
|
|
|
|
hash = "sha512-ZKjUA1Kp++RLnCNUOi2K/iGc4zIIR4pC4j8qPfO+rcgp7ghZfgsXO8sB+JD307kzeikUXnPFX7ef28DlzI8s8Q==";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
aeronSamples_1_43_0 = fetchMavenArtifact {
|
2024-01-02 11:29:13 +00:00
|
|
|
inherit groupId;
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.43.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
artifactId = "aeron-samples";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha512-a/ti4Kd8WwzOzDGMgdYk0pxsu8vRA4kRD9cm4D3S+r6xc/rL8ECHVoogOMDeabDd1EYSIbx/sKE01BJOW7BVsg==";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
aeronAll_1_44_1 = fetchMavenArtifact {
|
|
|
|
inherit groupId;
|
|
|
|
artifactId = "aeron-all";
|
|
|
|
version = "1.44.1";
|
|
|
|
hash = "sha256-O80bWp7F6mRh3me1znzpfFfFEpvvMVjL4PrAt7+3Fq0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
aeronSamples_1_44_1 = fetchMavenArtifact {
|
|
|
|
inherit groupId;
|
|
|
|
version = "1.44.1";
|
|
|
|
artifactId = "aeron-samples";
|
|
|
|
hash = "sha256-ZSuTed45BRzr4JJuGeXghUgEifv/FpnCzTNJWa+nwjo=";
|
|
|
|
};
|
|
|
|
|
|
|
|
aeronAll = aeronAll_1_44_1;
|
|
|
|
aeronSamples = aeronSamples_1_44_1;
|
2023-03-24 00:07:29 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
in stdenv.mkDerivation {
|
|
|
|
|
|
|
|
inherit pname version;
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
aeronAll
|
|
|
|
aeronSamples
|
2023-03-24 00:07:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
dontUnpack = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
mkdir --parents "$out/share/java"
|
|
|
|
ln --symbolic "${aeronAll.jar}" "$out/share/java/${pname}-all.jar"
|
|
|
|
ln --symbolic "${aeronSamples.jar}" "$out/share/java/${pname}-samples.jar"
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
function wrap {
|
|
|
|
makeWrapper "${jdk11}/bin/java" "$out/bin/$1" \
|
|
|
|
--add-flags "--add-opens java.base/sun.nio.ch=ALL-UNNAMED" \
|
2024-01-02 11:29:13 +00:00
|
|
|
--add-flags "--class-path ${aeronAll.jar}" \
|
2023-03-24 00:07:29 +00:00
|
|
|
--add-flags "$2"
|
|
|
|
}
|
|
|
|
|
|
|
|
wrap "${pname}-media-driver" io.aeron.driver.MediaDriver
|
|
|
|
wrap "${pname}-stat" io.aeron.samples.AeronStat
|
|
|
|
wrap "${pname}-archiving-media-driver" io.aeron.archive.ArchivingMediaDriver
|
|
|
|
wrap "${pname}-archive-tool" io.aeron.archive.ArchiveTool
|
|
|
|
wrap "${pname}-logging-agent" io.aeron.agent.DynamicLoggingAgent
|
2024-01-02 11:29:13 +00:00
|
|
|
wrap "${pname}-clustered-media-driver" io.aeron.cluster.ClusteredMediaDriver
|
2023-03-24 00:07:29 +00:00
|
|
|
wrap "${pname}-cluster-tool" io.aeron.cluster.ClusterTool
|
|
|
|
'';
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru = {
|
|
|
|
jar = aeronAll.jar;
|
|
|
|
};
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Low-latency messaging library";
|
|
|
|
homepage = "https://aeron.io/";
|
|
|
|
license = licenses.asl20;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "${pname}-media-driver";
|
2023-03-24 00:07:29 +00:00
|
|
|
maintainers = [ maintainers.vaci ];
|
2024-01-02 11:29:13 +00:00
|
|
|
sourceProvenance = [
|
|
|
|
sourceTypes.binaryBytecode
|
|
|
|
];
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
}
|