12 stdenv.mkDerivation rec {
13 pname = "apache-jena-fuseki";
16 url = "mirror://apache/jena/binaries/apache-jena-fuseki-${version}.tar.gz";
17 hash = "sha256-t25Q0lb+ecR12cDD1p6eZnzLxW0kZpPOFGvo5YK7AlI=";
25 ln -s "$out"/{fuseki-backup,fuseki-server,fuseki} "$out/bin"
26 for i in "$out"/bin/*; do
27 # It is necessary to set the default $FUSEKI_BASE directory to a writable location
28 # By default it points to $FUSEKI_HOME/run which is in the nix store
30 --prefix "PATH" : "${java}/bin/:${coreutils}/bin:${which}/bin" \
31 --set-default "FUSEKI_HOME" "$out" \
32 --run "if [ -z \"\$FUSEKI_BASE\" ]; then export FUSEKI_BASE=\"\$HOME/.local/fuseki\" ; mkdir -p \"\$HOME/.local/fuseki\" ; fi" \
38 basic-test = pkgs.callPackage ./fuseki-test.nix { };
42 description = "SPARQL server";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ raskin ];
45 platforms = platforms.all;
46 sourceProvenance = with sourceTypes; [ binaryBytecode binaryNativeCode ];
47 homepage = "https://jena.apache.org";
48 downloadPage = "https://archive.apache.org/dist/jena/binaries/";
49 mainProgram = "fuseki";