2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, xercesc }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
in
|
2021-01-15 22:18:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "xsd";
|
|
|
|
version = "4.0.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://codesynthesis.com/download/xsd/4.0/xsd-4.0.0+dep.tar.bz2";
|
|
|
|
sha256 = "05wqhmd5cd4pdky8i8qysnh96d2h16ly8r73whmbxkajiyf2m9gc";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./xsdcxx.patch ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
buildFlags = [
|
|
|
|
"LDFLAGS=-L${xercesc}/lib"
|
|
|
|
"CPPFLAGS=-I${xercesc}/include"
|
|
|
|
];
|
|
|
|
installFlags = buildFlags ++ [
|
|
|
|
"install_prefix=${placeholder "out"}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
buildInputs = [ xercesc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.codesynthesis.com/products/xsd";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Open-source, cross-platform W3C XML Schema to C++ data binding compiler";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "xsd";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.jagajaga ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|