2022-01-19 23:45:15 +00:00
|
|
|
{ lib, stdenv, fetchurl, java, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "apache-jena-fuseki";
|
|
|
|
version = "4.3.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dlcdn.apache.org/jena/binaries/apache-jena-fuseki-${version}.tar.gz";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "1r0vfa7d55lzw22yfx46mxxmz8x8pkr666vggqw2m1rzzj52z9nx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-08-21 13:32:41 +00:00
|
|
|
nativeBuildInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
installPhase = ''
|
|
|
|
cp -r . "$out"
|
2021-09-22 15:38:15 +00:00
|
|
|
chmod +x $out/fuseki
|
|
|
|
ln -s "$out"/{fuseki-backup,fuseki-server,fuseki} "$out/bin"
|
2020-04-24 23:36:52 +00:00
|
|
|
for i in "$out"/bin/*; do
|
|
|
|
wrapProgram "$i" \
|
|
|
|
--prefix "PATH" : "${java}/bin/" \
|
|
|
|
--set-default "FUSEKI_HOME" "$out" \
|
|
|
|
;
|
|
|
|
done
|
|
|
|
'';
|
2022-01-19 23:45:15 +00:00
|
|
|
meta = with lib; {
|
2021-01-17 00:15:33 +00:00
|
|
|
description = "SPARQL server";
|
2022-01-19 23:45:15 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://jena.apache.org";
|
|
|
|
downloadPage = "https://archive.apache.org/dist/jena/binaries/";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|