2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchurl, java, makeWrapper}:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="apache-jena";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "4.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
name="${baseName}-${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
url="https://dlcdn.apache.org/jena/binaries/apache-jena-${version}.tar.gz";
|
|
|
|
sha256 = "02asp88smayn68hc019fwp0si9mc79vxn8py7qhx3qzwjk6j9p71";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
|
|
|
installPhase = ''
|
|
|
|
cp -r . "$out"
|
|
|
|
for i in "$out"/bin/*; do
|
|
|
|
wrapProgram "$i" --prefix "PATH" : "${java}/bin/"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
2021-01-17 00:15:33 +00:00
|
|
|
description = "RDF database";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://jena.apache.org";
|
|
|
|
downloadPage = "http://archive.apache.org/dist/jena/binaries/";
|
|
|
|
updateWalker = true;
|
|
|
|
downloadURLRegexp = "apache-jena-.*[.]tar[.]gz\$";
|
|
|
|
};
|
|
|
|
}
|