depot/third_party/nixpkgs/pkgs/applications/graphics/figma-agent/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

45 lines
864 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, pkg-config
, fontconfig
, freetype
}:
let
inherit (rustPlatform) buildRustPackage bindgenHook;
version = "0.3.2";
in
buildRustPackage {
pname = "figma-agent";
inherit version;
src = fetchFromGitHub {
owner = "neetly";
repo = "figma-agent-linux";
rev = version;
sha256 = "sha256-iXLQOc8gomOik+HIIoviw19II5MD6FM0W5DT3aqtIcM=";
};
cargoHash = "sha256-ulYDKMMtKfBYur34CVhac4uaU0kfdkeBCCP/heuUZek=";
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 ];
mainProgram = "figma-agent";
};
}