Merge pull request #109101 from Mic92/xsd
This commit is contained in:
commit
5322c1f7d7
@ -1,9 +1,8 @@
|
|||||||
{ stdenv, fetchurl, xercesc }:
|
{ stdenv, fetchurl, xercesc }:
|
||||||
|
|
||||||
let
|
let
|
||||||
fixed_paths = ''LDFLAGS="-L${xercesc}/lib" CPPFLAGS="-I${xercesc}/include"'';
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
pname = "xsd";
|
pname = "xsd";
|
||||||
version = "4.0.0";
|
version = "4.0.0";
|
||||||
|
|
||||||
@ -14,20 +13,22 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
patches = [ ./xsdcxx.patch ];
|
patches = [ ./xsdcxx.patch ];
|
||||||
|
|
||||||
configurePhase = ''
|
postPatch = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
enableParallelBuilding = true;
|
||||||
make ${fixed_paths}
|
|
||||||
'';
|
buildFlags = [
|
||||||
|
"LDFLAGS=-L${xercesc}/lib"
|
||||||
|
"CPPFLAGS=-I${xercesc}/include"
|
||||||
|
];
|
||||||
|
installFlags = buildFlags ++ [
|
||||||
|
"install_prefix=${placeholder "out"}"
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ xercesc ];
|
buildInputs = [ xercesc ];
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
make ${fixed_paths} install_prefix="$out" install
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.codesynthesis.com/products/xsd";
|
homepage = "http://www.codesynthesis.com/products/xsd";
|
||||||
description = "An open-source, cross-platform W3C XML Schema to C++ data binding compiler";
|
description = "An open-source, cross-platform W3C XML Schema to C++ data binding compiler";
|
||||||
|
@ -25681,7 +25681,9 @@ in
|
|||||||
|
|
||||||
xrgears = callPackage ../applications/graphics/xrgears { };
|
xrgears = callPackage ../applications/graphics/xrgears { };
|
||||||
|
|
||||||
xsd = callPackage ../development/libraries/xsd { };
|
xsd = callPackage ../development/libraries/xsd {
|
||||||
|
stdenv = gcc9Stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
xscope = callPackage ../applications/misc/xscope { };
|
xscope = callPackage ../applications/misc/xscope { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user