2019-11-03 13:31:23 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-11-03 13:31:23 +00:00
|
|
|
, glib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "poly2tri-c";
|
|
|
|
version = "0.1.0";
|
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-01-18 20:28:31 +00:00
|
|
|
owner = "Mattey40";
|
2019-11-03 13:31:23 +00:00
|
|
|
repo = "poly2tri-c";
|
|
|
|
rev = "p2tc-${version}";
|
|
|
|
sha256 = "158vm3wqfxs22b74kqc4prlvjny38qqm3kz5wrgasmx0qciwh0g8";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-11-03 13:31:23 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"--std=gnu99"
|
|
|
|
"-Wno-error"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library for generating, refining and rendering 2-Dimensional Constrained Delaunay Triangulations";
|
|
|
|
homepage = "https://code.google.com/archive/p/poly2tri-c/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|