diff options
author | ercao <vip@ercao.cn> | 2023-04-09 20:47:43 +0800 |
---|---|---|
committer | ercao <vip@ercao.cn> | 2023-04-13 13:03:15 +0800 |
commit | a3fecefff9aa2f6da75861f2f7aabe52692d7389 (patch) | |
tree | a146155d8656357fcfedf2ebaec20310024c64ed /pkgs/applications/graphics | |
parent | 1270da504017b7d62cb04a493fb2655531fcb07a (diff) |
figma-agent: init at 0.2.7
Signed-off-by: ercao <vip@ercao.cn>
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r-- | pkgs/applications/graphics/figma-agent/default.nix | 45 |
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 ]; + }; +} |