2021-01-15 08:07:56 +01:00
|
|
|
{lib, stdenv, fetchurl, java, makeWrapper}:
|
2016-02-28 10:39:20 +01:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="apache-jena-fuseki";
|
2021-12-14 00:12:23 +01:00
|
|
|
version = "4.3.1";
|
2016-02-28 10:39:20 +01:00
|
|
|
name="${baseName}-${version}";
|
2021-12-14 00:12:23 +01:00
|
|
|
url="https://dlcdn.apache.org/jena/binaries/apache-jena-fuseki-${version}.tar.gz";
|
|
|
|
sha256 = "1r0vfa7d55lzw22yfx46mxxmz8x8pkr666vggqw2m1rzzj52z9nx";
|
2016-02-28 10:39:20 +01:00
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
|
|
|
installPhase = ''
|
|
|
|
cp -r . "$out"
|
2021-09-18 22:27:15 +02:00
|
|
|
chmod +x $out/fuseki
|
|
|
|
ln -s "$out"/{fuseki-backup,fuseki-server,fuseki} "$out/bin"
|
2016-02-28 10:39:20 +01:00
|
|
|
for i in "$out"/bin/*; do
|
|
|
|
wrapProgram "$i" \
|
|
|
|
--prefix "PATH" : "${java}/bin/" \
|
2017-11-17 11:15:52 +01:00
|
|
|
--set-default "FUSEKI_HOME" "$out" \
|
2016-02-28 10:39:20 +01:00
|
|
|
;
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
2021-01-16 05:20:42 +01:00
|
|
|
description = "SPARQL server";
|
2021-01-15 08:07:56 +01:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://jena.apache.org";
|
2016-02-28 10:39:20 +01:00
|
|
|
downloadPage = "http://archive.apache.org/dist/jena/binaries/";
|
|
|
|
downloadURLRegexp = "apache-jena-fuseki-.*[.]tar[.]gz\$";
|
|
|
|
};
|
|
|
|
}
|