571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
911 B
Nix
45 lines
911 B
Nix
{ lib, stdenv
|
|
, fetchFromGitLab
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, glib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "poly2tri-c";
|
|
version = "0.1.0";
|
|
|
|
outputs = [ "bin" "out" "dev" ];
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "jtojnar";
|
|
repo = pname;
|
|
rev = "p2tc-${version}";
|
|
sha256 = "158vm3wqfxs22b74kqc4prlvjny38qqm3kz5wrgasmx0qciwh0g8";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
"--std=gnu99"
|
|
"-Wno-error"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for generating, refining and rendering 2-Dimensional Constrained Delaunay Triangulations";
|
|
mainProgram = "p2tc";
|
|
homepage = "https://code.google.com/archive/p/poly2tri-c/";
|
|
license = licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ jtojnar ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|