summary refs log tree commit diff
path: root/pkgs/development/libraries/ogdf/default.nix
blob: bbef1d8b93d6b4e6bd6428004b86019ca377a616 (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
39
40
41
42
43
{ stdenv, fetchFromGitHub, cmake, doxygen }:

stdenv.mkDerivation rec {
  pname = "ogdf";
  version = "2020.02";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = "catalpa-202002";
    sha256 = "0drrs8zh1097i5c60z9g658vs9k1iinkav8crlwk722ihfm1vxqd";
  };

  nativeBuildInputs = [ cmake doxygen ];

  cmakeFlags = [ "-DCMAKE_CXX_FLAGS=-fPIC" ];

  # Without disabling hardening for format, the build fails with
  # the following error.
  #> /build/source/src/coin/CoinUtils/CoinMessageHandler.cpp:766:35: error: format not a string literal and no format arguments [-Werror=format-security]
  #> 766 |      sprintf(messageOut_,format_+2);
  hardeningDisable = [ "format" ];

  meta = with stdenv.lib; {
    description = "Open Graph Drawing Framework/Open Graph algorithms and Data structure Framework";
    homepage = "http://www.ogdf.net";
    license = licenses.gpl2;
    maintainers = [ maintainers.ianwookim ];
    platforms = platforms.i686 ++ platforms.x86_64;
    longDescription = ''
      OGDF stands both for Open Graph Drawing Framework (the original name) and
      Open Graph algorithms and Data structures Framework.

      OGDF is a self-contained C++ library for graph algorithms, in particular
      for (but not restricted to) automatic graph drawing. It offers sophisticated
      algorithms and data structures to use within your own applications or
      scientific projects.

      OGDF is developed and supported by Osnabrück University, TU Dortmund,
      University of Cologne, University of Konstanz, and TU Ilmenau.
    '';
   };
}