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

35 lines
1,002 B
Nix
Raw Normal View History

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