summary refs log tree commit diff
path: root/pkgs/development/libraries/commoncpp2/default.nix
blob: 0c5ab7585833be2e3c782ab6e033dbf400fb4ec9 (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
35
36
37
38
{ fetchurl, stdenv }:

stdenv.mkDerivation rec {
  name = "commoncpp2-1.8.1";

  src = fetchurl {
    url = "mirror://gnu/commoncpp/${name}.tar.gz";
    sha256 = "0kmgr5w3b1qwzxnsnw94q6rqs0hr8nbv9clf07ca2a2fyypx9kjk";
  };

  doCheck = true;

  preBuild = ''
    echo '#include <sys/stat.h>' >> inc/cc++/config.h
  '';

  meta = {
    description = "GNU Common C++, a portable, highly optimized C++ class framework";

    longDescription =
      '' GNU Common C++ and GNU uCommon are very portable and highly
         optimized class framework for writing C++ applications that need to
         use threads and support concurrent sychronization, and that use
         sockets, XML parsing, object serialization, thread-optimized String
         and data structure classes, etc.  This framework offers a class
         foundation that hides platform differences from your C++ application
         so that you need not write platform specific code.  GNU Common C++
         has been ported to compile nativily on most platforms which support
         either posix threads, or on maybe be used with Debian hosted mingw32
         to build native threading applications for Microsoft Windows.
      '';

    homepage = https://www.gnu.org/software/commoncpp/;
    license = stdenv.lib.licenses.gpl2Plus;
    maintainers = [ stdenv.lib.maintainers.marcweber ];
    platforms = with stdenv.lib.platforms; linux;
  };
}