From 9c74f91dc0ac0f80d5abf911640c125fc37a67f6 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Wed, 14 Apr 2021 14:45:10 +0200 Subject: [PATCH] add polygon-art package --- pkgs/default.nix | 2 ++ pkgs/polygon-art/default.nix | 38 ++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/polygon-art/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index c9cab4e..7867165 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -10,6 +10,8 @@ in { image-generator = super.callPackage ./image-generator { }; + polygon-art = super.callPackage ./polygon-art { }; + bitwig-studio1 = super.bitwig-studio1.override { libxkbcommon = super.libxkbcommon.overrideAttrs (old: rec { name = "libxkbcommon-0.7.2"; diff --git a/pkgs/polygon-art/default.nix b/pkgs/polygon-art/default.nix new file mode 100644 index 0000000..03a9a70 --- /dev/null +++ b/pkgs/polygon-art/default.nix @@ -0,0 +1,38 @@ +{ rustPlatform, fetchgit, stdenv, cairo, geos, clipper, clang, pkg-config +, cmake , openssl, llvmPackages, ... }: + +rustPlatform.buildRustPackage rec { + name = "polygon-art-${version}"; + version = "1.0.0"; + # src = ./.; + src = fetchgit { + url = "https://git.ingolf-wagner.de/palo/polygon-art.git"; + rev = "b30d687963b0c95dd27c8a37eae9c9f1a4fff1f6"; + sha256 = "14n13512cznnlmr70zi6ir4g3k4aj6swn49xvlf9yapr0f826v0x"; + }; + + cargoSha256 = "1snkq7sij24i3dfrjrm49p4hadif63nkq4zwn3ry9szjars298z3"; + #verifyCargoDeps = true; + + buildInputs = [ cairo geos clipper openssl ]; + + LIBCLANG_PATH = "${llvmPackages.libclang}/lib"; + + nativeBuildInputs = [ + cmake + llvmPackages.clang + llvmPackages.libclang + pkg-config + ]; + + + meta = with stdenv.lib; { + description = + "An image generator unsing entropy and a JSON as configuration."; + homepage = "https://git.ingolf-wagner.de/palo/image-generator2"; + license = licenses.gpl3; + maintainers = [ maintainers.mrVanDalo ]; + platforms = platforms.all; + }; +} +