nixpkgs/pkgs/by-name/fi/figma-agent/package.nix
2024-10-25 10:47:39 +08:00

44 lines
868 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
fontconfig,
freetype,
}:
rustPlatform.buildRustPackage rec {
pname = "figma-agent";
version = "0.3.2";
src = fetchFromGitHub {
owner = "neetly";
repo = "figma-agent-linux";
rev = "refs/tags/${version}";
sha256 = "sha256-iXLQOc8gomOik+HIIoviw19II5MD6FM0W5DT3aqtIcM=";
};
cargoPatches = [
./0001-update-time.patch
];
cargoHash = "sha256-4X1sFgvrJuBeEPbcxrAt6tClOG63kwJ6eUzIRIv8tBs=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
fontconfig
freetype
];
meta = {
homepage = "https://github.com/neetly/figma-agent-linux";
description = "Figma Agent for Linux (a.k.a. Font Helper)";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ercao ];
mainProgram = "figma-agent";
};
}