2021-01-21 18:00:13 +01:00
{ lib , stdenv , fetchFromGitHub , cmake , doxygen }:
2020-02-19 01:49:02 +01:00
stdenv . mkDerivation rec {
pname = " o g d f " ;
version = " 2 0 2 0 . 0 2 " ;
src = fetchFromGitHub {
owner = pname ;
repo = pname ;
rev = " c a t a l p a - 2 0 2 0 0 2 " ;
sha256 = " 0 d r r s 8 z h 1 0 9 7 i 5 c 6 0 z 9 g 6 5 8 v s 9 k 1 i i n k a v 8 c r l w k 7 2 2 i h f m 1 v x q d " ;
} ;
nativeBuildInputs = [ cmake doxygen ] ;
cmakeFlags = [ " - D C M A K E _ C X X _ F L A G S = - f P I C " ] ;
# 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 = [ " f o r m a t " ] ;
2021-01-21 18:00:13 +01:00
meta = with lib ; {
2020-02-19 01:49:02 +01:00
description = " O p e n G r a p h D r a w i n g F r a m e w o r k / O p e n G r a p h a l g o r i t h m s a n d D a t a s t r u c t u r e F r a m e w o r k " ;
homepage = " h t t p : / / w w w . o g d f . n e t " ;
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 .
'' ;
} ;
}