2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, xercesc }:
|
2016-04-26 21:11:51 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
in
|
2021-01-12 11:18:50 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "xsd";
|
2016-04-26 21:11:51 +01:00
|
|
|
version = "4.0.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://codesynthesis.com/download/xsd/4.0/xsd-4.0.0+dep.tar.bz2";
|
2016-04-26 21:11:51 +01:00
|
|
|
sha256 = "05wqhmd5cd4pdky8i8qysnh96d2h16ly8r73whmbxkajiyf2m9gc";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./xsdcxx.patch ];
|
|
|
|
|
2021-01-12 11:18:50 +00:00
|
|
|
postPatch = ''
|
2016-04-26 21:11:51 +01:00
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2021-01-12 11:18:50 +00:00
|
|
|
enableParallelBuilding = true;
|
2016-04-26 21:11:51 +01:00
|
|
|
|
2021-01-12 11:18:50 +00:00
|
|
|
buildFlags = [
|
|
|
|
"LDFLAGS=-L${xercesc}/lib"
|
|
|
|
"CPPFLAGS=-I${xercesc}/include"
|
|
|
|
];
|
|
|
|
installFlags = buildFlags ++ [
|
|
|
|
"install_prefix=${placeholder "out"}"
|
|
|
|
];
|
2016-04-26 21:11:51 +01:00
|
|
|
|
2021-01-12 11:18:50 +00:00
|
|
|
buildInputs = [ xercesc ];
|
2016-04-26 21:11:51 +01:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.codesynthesis.com/products/xsd";
|
2016-04-26 21:11:51 +01:00
|
|
|
description = "An open-source, cross-platform W3C XML Schema to C++ data binding compiler";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.jagajaga ];
|
2016-04-26 21:11:51 +01:00
|
|
|
};
|
|
|
|
}
|