depot/third_party/nixpkgs/pkgs/development/libraries/igraph/default.nix
Default email cf3f6e7a7d Project import generated by Copybara.
GitOrigin-RevId: 24eb3f87fc610f18de7076aee7c5a84ac5591e3e
2020-11-30 09:33:03 +01:00

37 lines
1 KiB
Nix

{ stdenv, lib, fetchFromGitHub,
pkgconfig, autoreconfHook,
flex, yacc, zlib, libxml2 }:
stdenv.mkDerivation rec {
pname = "igraph";
version = "0.8.4";
src = fetchFromGitHub {
owner = "igraph";
repo = pname;
rev = version;
sha256 = "159qd4al19k1i5a54m2q2mxvig4z2lz9h3rd5rq44bklybdc0i7j";
};
nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = [ flex yacc zlib libxml2 ];
# Normally, igraph wants us to call bootstrap.sh, which will call
# tools/getversion.sh. Instead, we're going to put the version directly
# where igraph wants, and then let autoreconfHook do the rest of the
# bootstrap. ~ C.
postPatch = ''
echo "${version}" > IGRAPH_VERSION
'';
doCheck = true;
meta = {
description = "The network analysis package";
homepage = "https://igraph.org/";
license = lib.licenses.gpl2;
# NB: Known to fail tests on aarch64.
platforms = [ "x86_64-linux" ] ++ lib.platforms.darwin;
maintainers = [ lib.maintainers.MostAwesomeDude ];
};
}