Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 40 lines 906 B view raw
1{ lib, stdenv, fetchurl, xercesc }: 2 3let 4in 5stdenv.mkDerivation rec { 6 pname = "xsd"; 7 version = "4.0.0"; 8 9 src = fetchurl { 10 url = "https://codesynthesis.com/download/xsd/4.0/xsd-4.0.0+dep.tar.bz2"; 11 sha256 = "05wqhmd5cd4pdky8i8qysnh96d2h16ly8r73whmbxkajiyf2m9gc"; 12 }; 13 14 patches = [ ./xsdcxx.patch ]; 15 16 postPatch = '' 17 patchShebangs . 18 ''; 19 20 enableParallelBuilding = true; 21 22 buildFlags = [ 23 "LDFLAGS=-L${xercesc}/lib" 24 "CPPFLAGS=-I${xercesc}/include" 25 ]; 26 installFlags = buildFlags ++ [ 27 "install_prefix=${placeholder "out"}" 28 ]; 29 30 buildInputs = [ xercesc ]; 31 32 meta = { 33 homepage = "http://www.codesynthesis.com/products/xsd"; 34 description = "Open-source, cross-platform W3C XML Schema to C++ data binding compiler"; 35 mainProgram = "xsd"; 36 license = lib.licenses.gpl2; 37 platforms = lib.platforms.linux; 38 maintainers = [ lib.maintainers.jagajaga ]; 39 }; 40}