linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / xalanc / default.nix
blobb757b737f976cb5078645c59debb9497995d4f46
1 { lib, stdenv, fetchurl, xercesc, getopt }:
3 let
4   platform = if stdenv.isLinux then "linux" else
5              if stdenv.isDarwin then "macosx" else
6              throw "Unsupported platform";
7 in stdenv.mkDerivation rec {
8   pname = "xalan-c";
9   version = "1.11";
11   src = fetchurl {
12     url = "http://www.eu.apache.org/dist/xalan/xalan-c/sources/xalan_c-${version}-src.tar.gz";
13     sha256 = "0a3a2b15vpacnqgpp6fiy1pwyc8q6ywzvyb5445f6wixfdspypjg";
14   };
16   configurePhase = ''
17     export XALANCROOT=`pwd`/c
18     cd `pwd`/c
19     mkdir -p $out
20     ./runConfigure -p ${platform} -c cc -x c++ -P$out
21   '';
23   buildInputs = [ xercesc getopt ];
25   meta = {
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 ];
31   };