mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
57bccb3cb8
* treewide: http -> https sources This updates the source urls of all top-level packages from http to https where possible. * buildtorrent: fix url and tab -> spaces
39 lines
919 B
Nix
39 lines
919 B
Nix
{ stdenv, fetchurl, xercesc }:
|
|
|
|
let
|
|
fixed_paths = ''LDFLAGS="-L${xercesc}/lib" CPPFLAGS="-I${xercesc}/include"'';
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "xsd-${version}";
|
|
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 ];
|
|
|
|
configurePhase = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
buildPhase = ''
|
|
make ${fixed_paths}
|
|
'';
|
|
|
|
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";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.jagajaga ];
|
|
};
|
|
}
|