2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, xercesc, getopt }:
|
2016-04-26 16:53:33 +01:00
|
|
|
|
2017-04-25 22:48:26 +01:00
|
|
|
let
|
|
|
|
platform = if stdenv.isLinux then "linux" else
|
|
|
|
if stdenv.isDarwin then "macosx" else
|
|
|
|
throw "Unsupported platform";
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "xalan-c";
|
2016-04-26 16:53:33 +01:00
|
|
|
version = "1.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.eu.apache.org/dist/xalan/xalan-c/sources/xalan_c-${version}-src.tar.gz";
|
|
|
|
sha256 = "0a3a2b15vpacnqgpp6fiy1pwyc8q6ywzvyb5445f6wixfdspypjg";
|
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
export XALANCROOT=`pwd`/c
|
|
|
|
cd `pwd`/c
|
2018-04-09 14:28:52 +01:00
|
|
|
mkdir -p $out
|
|
|
|
./runConfigure -p ${platform} -c cc -x c++ -P$out
|
2016-04-26 16:53:33 +01:00
|
|
|
'';
|
|
|
|
|
2017-04-25 22:48:26 +01:00
|
|
|
buildInputs = [ xercesc getopt ];
|
2016-04-26 16:53:33 +01:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://xalan.apache.org/";
|
2016-04-26 16:53:33 +01:00
|
|
|
description = "A XSLT processor for transforming XML documents";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.asl20;
|
2021-01-23 17:15:07 +00:00
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
2021-01-21 17:00:13 +00:00
|
|
|
maintainers = [ lib.maintainers.jagajaga ];
|
2016-04-26 16:53:33 +01:00
|
|
|
};
|
|
|
|
}
|