mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
1d90386271
Fixes CVE-2022-28890. https://www.mail-archive.com/users@jena.apache.org/msg19632.html
28 lines
756 B
Nix
28 lines
756 B
Nix
{ lib, stdenv, fetchurl, java, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "apache-jena";
|
|
version = "4.5.0";
|
|
src = fetchurl {
|
|
url = "https://dlcdn.apache.org/jena/binaries/apache-jena-${version}.tar.gz";
|
|
sha256 = "sha256-/KHjhMNnqac2HG/yvHJa0MwdReX6XuexojaMgRFdaWo=";
|
|
};
|
|
buildInputs = [
|
|
makeWrapper
|
|
];
|
|
installPhase = ''
|
|
cp -r . "$out"
|
|
for i in "$out"/bin/*; do
|
|
wrapProgram "$i" --prefix "PATH" : "${java}/bin/"
|
|
done
|
|
'';
|
|
meta = with lib; {
|
|
description = "RDF database";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
homepage = "https://jena.apache.org";
|
|
downloadPage = "https://archive.apache.org/dist/jena/binaries/";
|
|
};
|
|
}
|