about summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-04-26 23:09:18 +0200
committerGitHub <noreply@github.com>2023-04-26 23:09:18 +0200
commit3523a265acaf093fd8953cb6bff2bf8b2fdf5a56 (patch)
treec7e9a566319a6990977b28a453b6365ddc0efe32 /pkgs/applications/graphics
parent0d3808978a1d57bdc851be5103bee8a00590a24e (diff)
parenta3fecefff9aa2f6da75861f2f7aabe52692d7389 (diff)
Merge pull request #225419 from ercao/add-fimga-agent
figma-agent: init at 0.2.7
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/figma-agent/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/figma-agent/default.nix b/pkgs/applications/graphics/figma-agent/default.nix
new file mode 100644
index 0000000000000..0b189419a6625
--- /dev/null
+++ b/pkgs/applications/graphics/figma-agent/default.nix
@@ -0,0 +1,45 @@
+{ lib
+, fetchFromGitHub
+, rustPlatform
+, pkg-config
+, fontconfig
+, freetype
+, libclang
+}:
+let
+  inherit (rustPlatform) buildRustPackage bindgenHook;
+
+  version = "0.2.7";
+in
+buildRustPackage {
+  pname = "figma-agent";
+  inherit version;
+
+  src = fetchFromGitHub {
+    owner = "neetly";
+    repo = "figma-agent-linux";
+    rev = version;
+    sha256 = "sha256-Cq1hWNwJLBY9Bb41WFJxnr9fcygFZ8eNsn5cPXmGTyw=";
+  };
+
+  cargoSha256 = "sha256-Gc94Uk/Ikxjnb541flQL7AeblgU/yS6zQ/187ZGRYco=";
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs = [
+    fontconfig
+    freetype
+    bindgenHook
+  ];
+
+  LIBCLANG_PATH = "${libclang.lib}/lib";
+
+  doCheck = true;
+
+  meta = with lib; {
+    homepage = "https://github.com/neetly/figma-agent-linux";
+    description = "Figma Agent for Linux (a.k.a. Font Helper)";
+    license = licenses.mit;
+    maintainers = with maintainers; [ ercao ];
+  };
+}