2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (rustPlatform) buildRustPackage bindgenHook;
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.3.2";
|
2023-04-29 16:46:19 +00:00
|
|
|
in
|
|
|
|
buildRustPackage {
|
|
|
|
pname = "figma-agent";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "neetly";
|
|
|
|
repo = "figma-agent-linux";
|
|
|
|
rev = version;
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-iXLQOc8gomOik+HIIoviw19II5MD6FM0W5DT3aqtIcM=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
cargoHash = "sha256-ulYDKMMtKfBYur34CVhac4uaU0kfdkeBCCP/heuUZek=";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
bindgenHook
|
|
|
|
];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
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 ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "figma-agent";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
}
|