about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libcutl/default.nix
blob: db04b5f59b5cdc12a6751dfd1d1a9e794a66ad2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, gccStdenv, fetchurl, xercesc }:

let
  stdenv = gccStdenv;
in
stdenv.mkDerivation rec {
  pname = "libcutl";
  version = "1.10.0";

  meta = with lib; {
    description = "C++ utility library from Code Synthesis";
    longDescription = ''
        libcutl is a C++ utility library.
        It contains a collection of generic and independent components such as
        meta-programming tests, smart pointers, containers, compiler building blocks, etc.
    '';
    homepage = "https://codesynthesis.com/projects/libcutl/";
    changelog = "https://git.codesynthesis.com/cgit/libcutl/libcutl/plain/NEWS?h=${version}";
    platforms = platforms.all;
    maintainers = with maintainers; [ ];
    license = licenses.mit;
  };

  majmin = builtins.head ( builtins.match "([[:digit:]]\\.[[:digit:]]+).*" "${version}" );
  src = fetchurl {
    url = "https://codesynthesis.com/download/${pname}/${majmin}/${pname}-${version}.tar.bz2";
    sha256 = "070j2x02m4gm1fn7gnymrkbdxflgzxwl7m96aryv8wp3f3366l8j";
  };

  buildInputs = [ xercesc ];
  enableParallelBuilding = true;

  env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ];
}