summary refs log tree commit diff
path: root/pkgs/development/libraries/ogdf
diff options
context:
space:
mode:
authorIan-Woo Kim <ianwookim@gmail.com>2020-02-18 16:49:02 -0800
committerGitHub <noreply@github.com>2020-02-18 19:49:02 -0500
commitbc6c7f648b9e713cefd4104f4307f51c48aa4ab7 (patch)
tree689ba87b41fe0ace7d43d8a056b61884ab7a358f /pkgs/development/libraries/ogdf
parentc5ce00d548c37f70f2ebafda02cceb1e4322e4b7 (diff)
downloadnixpkgs-bc6c7f648b9e713cefd4104f4307f51c48aa4ab7.tar
nixpkgs-bc6c7f648b9e713cefd4104f4307f51c48aa4ab7.tar.gz
nixpkgs-bc6c7f648b9e713cefd4104f4307f51c48aa4ab7.tar.bz2
nixpkgs-bc6c7f648b9e713cefd4104f4307f51c48aa4ab7.tar.lz
nixpkgs-bc6c7f648b9e713cefd4104f4307f51c48aa4ab7.tar.xz
nixpkgs-bc6c7f648b9e713cefd4104f4307f51c48aa4ab7.tar.zst
nixpkgs-bc6c7f648b9e713cefd4104f4307f51c48aa4ab7.zip
ogdf: init at 2020.02 (#80143)
Restricted to i686/x86_64 as it imports cpuid.h on gnu toolchain

Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Diffstat (limited to 'pkgs/development/libraries/ogdf')
-rw-r--r--pkgs/development/libraries/ogdf/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/libraries/ogdf/default.nix b/pkgs/development/libraries/ogdf/default.nix
new file mode 100644
index 00000000000..bbef1d8b93d
--- /dev/null
+++ b/pkgs/development/libraries/ogdf/default.nix
@@ -0,0 +1,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.
+    '';
+   };
+}