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

40 lines
884 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, xercesc }:
2016-04-26 20:11:51 +00:00
let
in
2021-01-12 11:18:50 +00:00
stdenv.mkDerivation rec {
pname = "xsd";
2016-04-26 20:11:51 +00:00
version = "4.0.0";
src = fetchurl {
url = "https://codesynthesis.com/download/xsd/4.0/xsd-4.0.0+dep.tar.bz2";
2016-04-26 20:11:51 +00:00
sha256 = "05wqhmd5cd4pdky8i8qysnh96d2h16ly8r73whmbxkajiyf2m9gc";
};
patches = [ ./xsdcxx.patch ];
2021-01-12 11:18:50 +00:00
postPatch = ''
2016-04-26 20:11:51 +00:00
patchShebangs .
'';
2021-01-12 11:18:50 +00:00
enableParallelBuilding = true;
2016-04-26 20:11:51 +00: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 20:11:51 +00:00
2021-01-12 11:18:50 +00:00
buildInputs = [ xercesc ];
2016-04-26 20:11:51 +00:00
meta = {
homepage = "http://www.codesynthesis.com/products/xsd";
2016-04-26 20:11:51 +00:00
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 ];
2016-04-26 20:11:51 +00:00
};
}