23 assert (blas.isILP64 == lapack.isILP64 &&
24 blas.isILP64 == arpack.isILP64 &&
27 stdenv.mkDerivation (finalAttrs: {
31 src = fetchFromGitHub {
33 repo = finalAttrs.pname;
34 rev = finalAttrs.version;
35 hash = "sha256-1ge5V9G2jmIWQE5TW7+6cXCV9viFkhcnjpYrLQVLrgg=";
39 echo "${finalAttrs.version}" > IGRAPH_VERSION
41 # https://github.com/igraph/igraph/issues/2340
42 + lib.optionalString stdenv.isDarwin ''
43 sed -i "/safelocale/d" tests/CMakeLists.txt
46 outputs = [ "out" "dev" "doc" ];
69 ] ++ lib.optionals stdenv.cc.isClang [
74 "-DIGRAPH_USE_INTERNAL_BLAS=OFF"
75 "-DIGRAPH_USE_INTERNAL_LAPACK=OFF"
76 "-DIGRAPH_USE_INTERNAL_ARPACK=OFF"
77 "-DIGRAPH_USE_INTERNAL_GLPK=OFF"
78 "-DIGRAPH_USE_INTERNAL_GMP=OFF"
79 "-DIGRAPH_USE_INTERNAL_PLFIT=OFF"
80 "-DIGRAPH_GLPK_SUPPORT=ON"
81 "-DIGRAPH_GRAPHML_SUPPORT=ON"
82 "-DIGRAPH_OPENMP_SUPPORT=ON"
83 "-DIGRAPH_ENABLE_LTO=AUTO"
84 "-DIGRAPH_ENABLE_TLS=ON"
85 "-DBUILD_SHARED_LIBS=ON"
92 cp -r doc "$out/share"
95 postFixup = lib.optionalString stdenv.isDarwin ''
96 install_name_tool -change libblas.dylib ${blas}/lib/libblas.dylib $out/lib/libigraph.dylib
100 python = python3.pkgs.igraph;
104 description = "C library for complex network analysis and graph theory";
105 homepage = "https://igraph.org/";
106 changelog = "https://github.com/igraph/igraph/blob/${finalAttrs.src.rev}/CHANGELOG.md";
107 license = licenses.gpl2Plus;
108 platforms = platforms.all;
109 maintainers = with maintainers; [ MostAwesomeDude dotlambda ];