mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
41 lines
906 B
Nix
41 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 ];
|
|
};
|
|
}
|