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

37 lines
1.2 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-07-07 04:38:18 +02:00
#cargoSha256 = "05rkn8iihj4j9k179xx7wn2a07hxks050raj6fbxmj6gdx6aj170";
cargoSha256 = "0sgk4hw77cxqbqzd258fz67r7fpjblkm7cqh14n5f1c43y8vgxa0";
2021-04-14 21:06:20 +02:00
verifyCargoDeps = true;
2021-04-14 14:45:10 +02:00
2021-07-07 04:38:18 +02:00
# Needed so bindgen can find libclang.so
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
2021-04-14 14:45:10 +02:00
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 ];
};
}