2018-06-26 04:33:09 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub,
|
|
|
|
pkgconfig, autoreconfHook,
|
|
|
|
flex, yacc, zlib, libxml2 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-11-04 23:32:52 +00:00
|
|
|
pname = "igraph";
|
2020-11-26 07:36:15 +00:00
|
|
|
version = "0.8.4";
|
2018-06-26 04:33:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "igraph";
|
2018-11-04 23:32:52 +00:00
|
|
|
repo = pname;
|
2018-06-26 04:33:09 +01:00
|
|
|
rev = version;
|
2020-11-26 07:36:15 +00:00
|
|
|
sha256 = "159qd4al19k1i5a54m2q2mxvig4z2lz9h3rd5rq44bklybdc0i7j";
|
2018-06-26 04:33:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
|
|
|
buildInputs = [ flex yacc zlib libxml2 ];
|
|
|
|
|
2020-06-25 08:31:54 +01:00
|
|
|
# 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.
|
2018-06-26 04:33:09 +01:00
|
|
|
postPatch = ''
|
2020-06-25 08:31:54 +01:00
|
|
|
echo "${version}" > IGRAPH_VERSION
|
2018-06-26 04:33:09 +01:00
|
|
|
'';
|
|
|
|
|
2020-06-25 08:31:54 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2018-06-26 04:33:09 +01:00
|
|
|
meta = {
|
|
|
|
description = "The network analysis package";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://igraph.org/";
|
2018-06-26 04:33:09 +01:00
|
|
|
license = lib.licenses.gpl2;
|
2020-06-25 23:44:45 +01:00
|
|
|
# NB: Known to fail tests on aarch64.
|
2020-07-20 20:25:59 +01:00
|
|
|
platforms = [ "x86_64-linux" ] ++ lib.platforms.darwin;
|
2018-06-26 04:33:09 +01:00
|
|
|
maintainers = [ lib.maintainers.MostAwesomeDude ];
|
|
|
|
};
|
|
|
|
}
|