about summary refs log tree commit diff
path: root/pkgs/applications/graphics/figma-agent/default.nix
blob: 31dbf9b135262bb02b0824c7b4ef1d1a2a0905cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, fetchFromGitHub
, rustPlatform
, pkg-config
, fontconfig
, freetype
}:
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
    bindgenHook
  ];

  buildInputs = [
    fontconfig
    freetype
  ];

  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 ];
  };
}