mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
xsd: modernize build
This commit is contained in:
parent
a8c07163dc
commit
37edb33d92
@ -1,9 +1,8 @@
|
||||
{ stdenv, fetchurl, xercesc }:
|
||||
|
||||
let
|
||||
fixed_paths = ''LDFLAGS="-L${xercesc}/lib" CPPFLAGS="-I${xercesc}/include"'';
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xsd";
|
||||
version = "4.0.0";
|
||||
|
||||
@ -14,20 +13,22 @@ stdenv.mkDerivation {
|
||||
|
||||
patches = [ ./xsdcxx.patch ];
|
||||
|
||||
configurePhase = ''
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make ${fixed_paths}
|
||||
'';
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildFlags = [
|
||||
"LDFLAGS=-L${xercesc}/lib"
|
||||
"CPPFLAGS=-I${xercesc}/include"
|
||||
];
|
||||
installFlags = buildFlags ++ [
|
||||
"install_prefix=${placeholder "out"}"
|
||||
];
|
||||
|
||||
buildInputs = [ xercesc ];
|
||||
|
||||
installPhase = ''
|
||||
make ${fixed_paths} install_prefix="$out" install
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.codesynthesis.com/products/xsd";
|
||||
description = "An open-source, cross-platform W3C XML Schema to C++ data binding compiler";
|
||||
|
Loading…
Reference in New Issue
Block a user