blob: 2d614ee0e7310da7f77d390b1f84e3dc1c0fad89 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib, stdenv, fetchurl, xercesc }:
let
in
stdenv.mkDerivation rec {
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 ];
postPatch = ''
patchShebangs .
'';
enableParallelBuilding = true;
buildFlags = [
"LDFLAGS=-L${xercesc}/lib"
"CPPFLAGS=-I${xercesc}/include"
];
installFlags = buildFlags ++ [
"install_prefix=${placeholder "out"}"
];
buildInputs = [ xercesc ];
meta = {
homepage = "http://www.codesynthesis.com/products/xsd";
description = "An open-source, cross-platform W3C XML Schema to C++ data binding compiler";
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.jagajaga ];
};
}
|