45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
{
|
|
appimageTools,
|
|
fetchurl,
|
|
lib,
|
|
}:
|
|
|
|
let
|
|
pname = "figma-linux";
|
|
version = "126.5.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/IliyaBrook/figma-linux/releases/download/${version}/figma-desktop-${version}-amd64.AppImage";
|
|
hash = "sha256-SLn4y+NVCcBDZrGqIpmpIEQavY7xngt5JMI8yG1g6/0=";
|
|
};
|
|
|
|
appimageContents = appimageTools.extract { inherit pname version src; };
|
|
in
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
|
|
extraInstallCommands = ''
|
|
install -Dm444 ${appimageContents}/usr/share/applications/io.github.nickvdp.figma-desktop-linux.desktop \
|
|
-t $out/share/applications
|
|
substituteInPlace $out/share/applications/io.github.nickvdp.figma-desktop-linux.desktop \
|
|
--replace-fail 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
install -Dm444 ${appimageContents}/io.github.nickvdp.figma-desktop-linux.png \
|
|
$out/share/icons/hicolor/256x256/apps/io.github.nickvdp.figma-desktop-linux.png
|
|
'';
|
|
|
|
extraPkgs = pkgs: with pkgs; [
|
|
libappindicator-gtk3
|
|
libnotify
|
|
libsecret
|
|
];
|
|
|
|
meta = {
|
|
description = "Figma Desktop for Linux";
|
|
homepage = "https://github.com/IliyaBrook/figma-linux";
|
|
license = lib.licenses.unfree;
|
|
mainProgram = "figma-linux";
|
|
platforms = [ "x86_64-linux" ];
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
}
|