2024-10-29 11:11:06 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
pkg-config,
|
|
|
|
fontconfig,
|
|
|
|
freetype,
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
2024-10-29 11:11:06 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2023-04-29 16:46:19 +00:00
|
|
|
pname = "figma-agent";
|
2024-10-29 11:11:06 +00:00
|
|
|
version = "0.3.2";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "neetly";
|
|
|
|
repo = "figma-agent-linux";
|
2024-10-29 11:11:06 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-iXLQOc8gomOik+HIIoviw19II5MD6FM0W5DT3aqtIcM=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2024-10-29 11:11:06 +00:00
|
|
|
cargoPatches = [
|
|
|
|
./0001-update-time.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
cargoHash = "sha256-4X1sFgvrJuBeEPbcxrAt6tClOG63kwJ6eUzIRIv8tBs=";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2024-10-29 11:11:06 +00:00
|
|
|
rustPlatform.bindgenHook
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
];
|
|
|
|
|
2024-10-29 11:11:06 +00:00
|
|
|
meta = {
|
2023-04-29 16:46:19 +00:00
|
|
|
homepage = "https://github.com/neetly/figma-agent-linux";
|
|
|
|
description = "Figma Agent for Linux (a.k.a. Font Helper)";
|
2024-10-29 11:11:06 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ ercao ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "figma-agent";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
}
|