nixpkgs/pkgs/development/libraries/xalanc/default.nix

34 lines
1.0 KiB
Nix
Raw Normal View History

2017-04-25 21:48:26 +00:00
{ stdenv, fetchurl, xercesc, getopt }:
2016-04-26 15:53:33 +00:00
2017-04-25 21:48:26 +00:00
let
platform = if stdenv.isLinux then "linux" else
if stdenv.isDarwin then "macosx" else
throw "Unsupported platform";
in stdenv.mkDerivation rec {
2016-04-26 15:53:33 +00:00
name = "xalan-c-${version}";
version = "1.11";
src = fetchurl {
url = "http://www.eu.apache.org/dist/xalan/xalan-c/sources/xalan_c-${version}-src.tar.gz";
sha256 = "0a3a2b15vpacnqgpp6fiy1pwyc8q6ywzvyb5445f6wixfdspypjg";
};
2017-04-25 21:48:26 +00:00
# TODO: should we really be putting outputs in $out/usr? I'd expect -P$out below
2016-04-26 15:53:33 +00:00
configurePhase = ''
export XALANCROOT=`pwd`/c
cd `pwd`/c
mkdir -p $out/usr
2017-04-25 21:48:26 +00:00
./runConfigure -p ${platform} -c cc -x c++ -P$out/usr
2016-04-26 15:53:33 +00:00
'';
2017-04-25 21:48:26 +00:00
buildInputs = [ xercesc getopt ];
2016-04-26 15:53:33 +00:00
meta = {
homepage = http://xalan.apache.org/;
description = "A XSLT processor for transforming XML documents";
license = stdenv.lib.licenses.asl20;
2017-04-25 21:48:26 +00:00
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
2016-04-26 15:53:33 +00:00
maintainers = [ stdenv.lib.maintainers.jagajaga ];
};
}