Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 34 lines 1.1 kB view raw
1{ lib, gccStdenv, fetchurl, xercesc }: 2 3let 4 stdenv = gccStdenv; 5in 6stdenv.mkDerivation rec { 7 pname = "libcutl"; 8 version = "1.10.0"; 9 10 meta = with lib; { 11 description = "C++ utility library from Code Synthesis"; 12 longDescription = '' 13 libcutl is a C++ utility library. 14 It contains a collection of generic and independent components such as 15 meta-programming tests, smart pointers, containers, compiler building blocks, etc. 16 ''; 17 homepage = "https://codesynthesis.com/projects/libcutl/"; 18 changelog = "https://git.codesynthesis.com/cgit/libcutl/libcutl/plain/NEWS?h=${version}"; 19 platforms = platforms.all; 20 maintainers = [ ]; 21 license = licenses.mit; 22 }; 23 24 majmin = builtins.head ( builtins.match "([[:digit:]]\\.[[:digit:]]+).*" "${version}" ); 25 src = fetchurl { 26 url = "https://codesynthesis.com/download/${pname}/${majmin}/${pname}-${version}.tar.bz2"; 27 sha256 = "070j2x02m4gm1fn7gnymrkbdxflgzxwl7m96aryv8wp3f3366l8j"; 28 }; 29 30 buildInputs = [ xercesc ]; 31 enableParallelBuilding = true; 32 33 env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 34}