2018-06-26 05:33:09 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub,
|
|
|
|
pkgconfig, autoreconfHook,
|
|
|
|
flex, yacc, zlib, libxml2 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-11-05 00:32:52 +01:00
|
|
|
pname = "igraph";
|
2018-06-26 05:33:09 +02:00
|
|
|
version = "0.7.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "igraph";
|
2018-11-05 00:32:52 +01:00
|
|
|
repo = pname;
|
2018-06-26 05:33:09 +02:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1wsy0r511gk069il6iqjs27q8cjvqz20gf0a7inybx1bw84845z8";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
|
|
|
buildInputs = [ flex yacc zlib libxml2 ];
|
|
|
|
|
|
|
|
# This file is normally generated by igraph's bootstrap.sh, but we can do it
|
|
|
|
# ourselves. ~ C.
|
|
|
|
postPatch = ''
|
|
|
|
echo "${version}" > VERSION
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The network analysis package";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://igraph.org/";
|
2018-06-26 05:33:09 +02:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.MostAwesomeDude ];
|
|
|
|
};
|
|
|
|
}
|