2022-01-16 17:35:27 +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-13 23:12:23 +00:00
|
|
|
sha256 = "1r0vfa7d55lzw22yfx46mxxmz8x8pkr666vggqw2m1rzzj52z9nx";
|
2016-02-28 09:39:20 +00:00
|
|
|
};
|
2022-07-14 18:20:09 +00:00
|
|
|
nativeBuildInputs = [
|
2016-02-28 09:39:20 +00:00
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
installPhase = ''
|
|
|
|
cp -r . "$out"
|
2021-09-18 20:27:15 +00:00
|
|
|
chmod +x $out/fuseki
|
|
|
|
ln -s "$out"/{fuseki-backup,fuseki-server,fuseki} "$out/bin"
|
2016-02-28 09:39:20 +00:00
|
|
|
for i in "$out"/bin/*; do
|
|
|
|
wrapProgram "$i" \
|
|
|
|
--prefix "PATH" : "${java}/bin/" \
|
2017-11-17 10:15:52 +00:00
|
|
|
--set-default "FUSEKI_HOME" "$out" \
|
2016-02-28 09:39:20 +00:00
|
|
|
;
|
|
|
|
done
|
|
|
|
'';
|
2022-01-16 17:35:27 +00:00
|
|
|
meta = with lib; {
|
2021-01-16 04:20:42 +00:00
|
|
|
description = "SPARQL server";
|
2022-01-16 17:35:27 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2022-01-03 15:53:12 +00:00
|
|
|
homepage = "https://jena.apache.org";
|
|
|
|
downloadPage = "https://archive.apache.org/dist/jena/binaries/";
|
2016-02-28 09:39:20 +00:00
|
|
|
};
|
|
|
|
}
|