Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 653 B view raw
1{ lib 2, stdenv 3, fetchzip 4}: 5 6stdenv.mkDerivation rec { 7 pname = "jdom"; 8 version = "2.0.6.1"; 9 10 src = fetchzip { 11 url = "http://www.jdom.org/dist/binary/jdom-${version}.zip"; 12 stripRoot = false; 13 hash = "sha256-Y++mlO+7N5EU2NhRzLl5x5WXNqu/2tDO/NpNhfRegcg="; 14 }; 15 16 installPhase = '' 17 runHook preInstall 18 19 mkdir -p $out/share/java 20 cp -a . $out/share/java 21 22 runHook postInstall 23 ''; 24 25 meta = with lib; { 26 description = "Java-based solution for accessing, manipulating, and outputting XML data from Java code"; 27 homepage = "http://www.jdom.org"; 28 platforms = platforms.unix; 29 license = licenses.bsdOriginal; 30 }; 31}