summary refs log tree commit diff
path: root/pkgs/development/libraries/java/xalanj/default.nix
blob: c5ffed50be1b7418d462342dbaad98283929950e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ fetchurl, stdenv, ant, javac, jvm, xerces }:

let
  version = "2.7.1";
  options = "-Dbuild.compiler=gcj";   # FIXME: We assume GCJ here.
in
  stdenv.mkDerivation {
    name = "xalan-j-${version}";

    src = fetchurl {
      url = "mirror://apache/xml/xalan-j/source/xalan-j_2_7_1-src.tar.gz";
      sha256 = "0hxhx0n0ynflq1d01sma658ipwn3f3902x6n8mfk70mqkdiallps";
    };

    buildInputs = [ ant javac jvm xerces ];

    configurePhase =
      '' rm -v lib/xerces*.jar
         export CLASSPATH="${xerces}/lib/java"
      '';

    buildPhase = "ant ${options} jar";
    doCheck    = false;

    # FIXME: Install javadoc as well.
    installPhase =
      '' mkdir -p "$out/lib/java"
         cp -v build/x*.jar "$out/lib/java"
      '';

    meta = {
      description = "Apache Xalan-Java, an XSLT processor";

      longDescription =
        '' Xalan-Java is an XSLT processor for transforming XML documents
           into HTML, text, or other XML document types.  It implements XSL
           Transformations (XSLT) Version 1.0 and XML Path Language (XPath)
           Version 1.0 and can be used from the command line, in an applet or a
           servlet, or as a module in other program.

           Xalan-Java implements the javax.xml.transform interface in Java
           API for XML Processing (JAXP) 1.3.  This interface provides a
           modular framework and a standard API for performing XML
           transformations, and utilizes system properties to determine which
           Transformer and which XML parser to use.

           Xalan-Java also implements the javax.xml.xpath interface in JAXP
           1.3, which provides an object-model neutral API for evaluation of
           XPath expressions and access to the evaluation environment.
        '';

      homepage = http://xml.apache.org/xalan-j/;
      license = "Apache-2.0";

      maintainers = [ ];
    };
  }