nixpkgs/pkgs/development/libraries/igraph/default.nix

38 lines
1.0 KiB
Nix
Raw Normal View History

2018-06-26 03:33:09 +00:00
{ stdenv, lib, fetchFromGitHub,
pkg-config, autoreconfHook,
2018-06-26 03:33:09 +00:00
flex, yacc, zlib, libxml2 }:
stdenv.mkDerivation rec {
pname = "igraph";
2020-12-09 04:39:14 +00:00
version = "0.8.5";
2018-06-26 03:33:09 +00:00
src = fetchFromGitHub {
owner = "igraph";
repo = pname;
2018-06-26 03:33:09 +00:00
rev = version;
2020-12-09 04:39:14 +00:00
sha256 = "0cb0kp6mpmgz74kbymqw4xxads8ff7jh0n59dsm76xy6nn8hpqcz";
2018-06-26 03:33:09 +00:00
};
nativeBuildInputs = [ pkg-config autoreconfHook ];
2018-06-26 03:33:09 +00:00
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.
2018-06-26 03:33:09 +00:00
postPatch = ''
echo "${version}" > IGRAPH_VERSION
2018-06-26 03:33:09 +00:00
'';
doCheck = true;
2018-06-26 03:33:09 +00:00
meta = {
description = "The network analysis package";
homepage = "https://igraph.org/";
2018-06-26 03:33:09 +00:00
license = lib.licenses.gpl2;
# NB: Known to fail tests on aarch64.
2020-07-20 19:25:59 +00:00
platforms = [ "x86_64-linux" ] ++ lib.platforms.darwin;
2018-06-26 03:33:09 +00:00
maintainers = [ lib.maintainers.MostAwesomeDude ];
};
}