depot/third_party/nixpkgs/pkgs/development/libraries/xsd/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

40 lines
906 B
Nix

{ 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 = "Open-source, cross-platform W3C XML Schema to C++ data binding compiler";
mainProgram = "xsd";
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.jagajaga ];
};
}