nixpkgs-suyu/pkgs/development/libraries/igraph/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

37 lines
1 KiB
Nix

{ stdenv, lib, fetchFromGitHub,
pkg-config, autoreconfHook,
flex, yacc, zlib, libxml2 }:
stdenv.mkDerivation rec {
pname = "igraph";
version = "0.8.5";
src = fetchFromGitHub {
owner = "igraph";
repo = pname;
rev = version;
sha256 = "0cb0kp6mpmgz74kbymqw4xxads8ff7jh0n59dsm76xy6nn8hpqcz";
};
nativeBuildInputs = [ pkg-config 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 ];
};
}