Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
ant,
|
|
jdk,
|
|
stripJavaArchivesHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "jna";
|
|
version = "5.18.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "java-native-access";
|
|
repo = "jna";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-S0magEmA/Gw/26ZdjVnRTOJxBmRiw8DLQg49pRmaUU4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
ant
|
|
jdk
|
|
stripJavaArchivesHook
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
rm -r dist # remove prebuilt files
|
|
ant dist
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm444 -t $out/share/java dist/jna{,-platform}.jar
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/java-native-access/jna/blob/${finalAttrs.version}/CHANGES.md";
|
|
description = "Java Native Access";
|
|
homepage = "https://github.com/java-native-access/jna";
|
|
license = with licenses; [
|
|
lgpl21
|
|
asl20
|
|
];
|
|
maintainers = with maintainers; [ nagy ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
})
|