nixos-config/pkgs/polygon-art/default.nix

35 lines
1,002 B
Nix

{ rustPlatform, fetchgit, stdenv, cairo, geos, clipper, clang, pkg-config, cmake
, openssl, llvmPackages, ... }:
rustPlatform.buildRustPackage rec {
name = "polygon-art-${version}";
version = "1.0.0";
src = fetchgit {
url = "https://git.ingolf-wagner.de/palo/polygon-art.git";
rev = "bc571b10a8be3357b517d2c413c0c2111593e4bf";
sha256 = "0dn3111cy50znxr5hawmkz3lcywxhzjz77jqq88pf1dh03jy2f45";
};
cargoSha256 = "05rkn8iihj4j9k179xx7wn2a07hxks050raj6fbxmj6gdx6aj170";
verifyCargoDeps = true;
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
buildInputs = [ cairo geos clipper openssl ];
nativeBuildInputs =
[ cmake llvmPackages.clang llvmPackages.libclang pkg-config ];
meta = with stdenv.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 ];
#platforms = platforms.all;
};
}