depot/third_party/nixpkgs/pkgs/development/libraries/igraph/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
767 B
Nix

{ stdenv, lib, fetchFromGitHub,
pkgconfig, autoreconfHook,
flex, yacc, zlib, libxml2 }:
stdenv.mkDerivation rec {
pname = "igraph";
version = "0.7.1";
src = fetchFromGitHub {
owner = "igraph";
repo = pname;
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";
homepage = "https://igraph.org/";
license = lib.licenses.gpl2;
maintainers = [ lib.maintainers.MostAwesomeDude ];
};
}