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

35 lines
1 KiB
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
2021-04-16 18:49:03 +02:00
rustPlatform.buildRustPackage {
2021-04-14 21:06:20 +02:00
2021-04-16 18:49:03 +02:00
pname = "polygon-art";
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-16 18:49:03 +02:00
# nix-prefetch-git-rendered --rev refs/heads/develop https://git.ingolf-wagner.de/palo/polygon-art.git
2021-04-14 14:45:10 +02:00
src = fetchgit {
url = "https://git.ingolf-wagner.de/palo/polygon-art.git";
2021-04-16 18:49:03 +02:00
rev = "dfb6e0789ec67ee649050ad3b16d8b6a6b38955d";
sha256 = "0iqmikvl93pazxfd120hcr0waxav7zy6px5kmdqxifrjgdbda9xx";
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 ];
};
}