https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
30 lines
678 B
Nix
30 lines
678 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "planarity";
|
|
version = "3.0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "graph-algorithms";
|
|
repo = "edge-addition-planarity-suite";
|
|
rev = "Version_${version}";
|
|
sha256 = "sha256-cUAh2MXCSmtxFtV6iTHgSRgsq/26DjWwxhWJH1+367A=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/graph-algorithms/edge-addition-planarity-suite";
|
|
description = "A library for implementing graph algorithms";
|
|
license = licenses.bsd3;
|
|
maintainers = teams.sage.members;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|