Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / xsd / default.nix
blob2d614ee0e7310da7f77d390b1f84e3dc1c0fad89
1 { lib, stdenv, fetchurl, xercesc }:
3 let
4 in
5 stdenv.mkDerivation rec {
6   pname = "xsd";
7   version = "4.0.0";
9   src = fetchurl {
10     url = "https://codesynthesis.com/download/xsd/4.0/xsd-4.0.0+dep.tar.bz2";
11     sha256 = "05wqhmd5cd4pdky8i8qysnh96d2h16ly8r73whmbxkajiyf2m9gc";
12   };
14   patches = [ ./xsdcxx.patch ];
16   postPatch = ''
17     patchShebangs .
18   '';
20   enableParallelBuilding = true;
22   buildFlags = [
23     "LDFLAGS=-L${xercesc}/lib"
24     "CPPFLAGS=-I${xercesc}/include"
25   ];
26   installFlags = buildFlags ++ [
27     "install_prefix=${placeholder "out"}"
28   ];
30   buildInputs = [ xercesc ];
32   meta = {
33     homepage = "http://www.codesynthesis.com/products/xsd";
34     description = "An open-source, cross-platform W3C XML Schema to C++ data binding compiler";
35     license = lib.licenses.gpl2;
36     platforms = lib.platforms.linux;
37     maintainers = [ lib.maintainers.jagajaga ];
38   };