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>
This commit is contained in:
Ian-Woo Kim 2020-02-18 16:49:02 -08:00 committed by GitHub
parent c5ce00d548
commit bc6c7f648b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View File

@ -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.
'';
};
}

View File

@ -5469,6 +5469,8 @@ in
ofono-phonesim = libsForQt5.callPackage ../development/tools/ofono-phonesim/default.nix { }; ofono-phonesim = libsForQt5.callPackage ../development/tools/ofono-phonesim/default.nix { };
ogdf = callPackage ../development/libraries/ogdf { };
oh-my-zsh = callPackage ../shells/zsh/oh-my-zsh { }; oh-my-zsh = callPackage ../shells/zsh/oh-my-zsh { };
ola = callPackage ../applications/misc/ola { }; ola = callPackage ../applications/misc/ola { };