nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 43 lines 1.6 kB view raw
1{ stdenv, fetchFromGitHub, cmake, doxygen }: 2 3stdenv.mkDerivation rec { 4 pname = "ogdf"; 5 version = "2020.02"; 6 7 src = fetchFromGitHub { 8 owner = pname; 9 repo = pname; 10 rev = "catalpa-202002"; 11 sha256 = "0drrs8zh1097i5c60z9g658vs9k1iinkav8crlwk722ihfm1vxqd"; 12 }; 13 14 nativeBuildInputs = [ cmake doxygen ]; 15 16 cmakeFlags = [ "-DCMAKE_CXX_FLAGS=-fPIC" ]; 17 18 # Without disabling hardening for format, the build fails with 19 # the following error. 20 #> /build/source/src/coin/CoinUtils/CoinMessageHandler.cpp:766:35: error: format not a string literal and no format arguments [-Werror=format-security] 21 #> 766 | sprintf(messageOut_,format_+2); 22 hardeningDisable = [ "format" ]; 23 24 meta = with stdenv.lib; { 25 description = "Open Graph Drawing Framework/Open Graph algorithms and Data structure Framework"; 26 homepage = "http://www.ogdf.net"; 27 license = licenses.gpl2; 28 maintainers = [ maintainers.ianwookim ]; 29 platforms = platforms.i686 ++ platforms.x86_64; 30 longDescription = '' 31 OGDF stands both for Open Graph Drawing Framework (the original name) and 32 Open Graph algorithms and Data structures Framework. 33 34 OGDF is a self-contained C++ library for graph algorithms, in particular 35 for (but not restricted to) automatic graph drawing. It offers sophisticated 36 algorithms and data structures to use within your own applications or 37 scientific projects. 38 39 OGDF is developed and supported by Osnabrück University, TU Dortmund, 40 University of Cologne, University of Konstanz, and TU Ilmenau. 41 ''; 42 }; 43}