2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchzip
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jdom";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "2.0.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "http://www.jdom.org/dist/binary/jdom-${version}.zip";
|
|
|
|
stripRoot = false;
|
|
|
|
hash = "sha256-Y++mlO+7N5EU2NhRzLl5x5WXNqu/2tDO/NpNhfRegcg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/java
|
|
|
|
cp -a . $out/share/java
|
|
|
|
|
|
|
|
runHook postInstall
|
2021-12-06 16:07:01 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Java-based solution for accessing, manipulating, and outputting XML data from Java code";
|
|
|
|
homepage = "http://www.jdom.org";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
};
|
|
|
|
}
|