1 { lib, stdenv, fetchurl, xercesc, getopt }:
4 platform = if stdenv.isLinux then "linux" else
5 if stdenv.isDarwin then "macosx" else
6 throw "Unsupported platform";
7 in stdenv.mkDerivation rec {
12 url = "http://www.eu.apache.org/dist/xalan/xalan-c/sources/xalan_c-${version}-src.tar.gz";
13 sha256 = "0a3a2b15vpacnqgpp6fiy1pwyc8q6ywzvyb5445f6wixfdspypjg";
17 export XALANCROOT=`pwd`/c
20 ./runConfigure -p ${platform} -c cc -x c++ -P$out
23 buildInputs = [ xercesc getopt ];
26 homepage = "http://xalan.apache.org/";
27 description = "A XSLT processor for transforming XML documents";
28 license = lib.licenses.asl20;
29 platforms = lib.platforms.linux ++ lib.platforms.darwin;
30 maintainers = [ lib.maintainers.jagajaga ];