polygon-art/default.nix

38 lines
828 B
Nix
Raw Permalink Normal View History

2021-09-28 20:14:17 +02:00
{ rustPlatform,
lib,
cairo,
geos,
clipper,
clang,
pkg-config,
cmake,
openssl,
llvmPackages,
... }:
rustPlatform.buildRustPackage {
pname = "polygon-art";
2021-09-28 23:31:12 +02:00
version = "1.0.2";
2021-09-28 20:14:17 +02:00
src = ./.;
2021-09-28 23:31:12 +02:00
#cargoHash = lib.fakeHash;
cargoHash = "sha256-MCFezfCu/PktFdB+XUnagtz9g65C90F4qa3y4Ser/nQ=";
2021-09-28 20:14:17 +02:00
verifyCargoDeps = true;
# Needed so bindgen can find libclang.so
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
buildInputs = [ cairo geos clipper openssl ];
nativeBuildInputs =
[ cmake llvmPackages.clang llvmPackages.libclang pkg-config ];
meta = with lib; {
description = "Framework with examples to generate plotter friendly SVGs";
homepage = "https://git.ingolf-wagner.de/palo/polygon-art.git";
license = licenses.gpl3Plus;
maintainers = [ maintainers.mrVanDalo ];
};
}