diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-11-14 13:35:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 13:35:40 +0100 |
commit | eaae07772448133aed18f77d714ff9d803e9f52b (patch) | |
tree | d86739aeae8bc6a5476fba7fedf20d42f3782a41 | |
parent | 03af1b5510e24c3c912e845a75058adc36a90edb (diff) | |
parent | a25c3c56e74ff7827c9326534368bac247106ea0 (diff) |
Merge pull request #199546 from ercao/add-figma
figma-linux: init at 0.10.0
-rw-r--r-- | maintainers/maintainer-list.nix | 9 | ||||
-rw-r--r-- | pkgs/applications/graphics/figma-linux/default.nix | 77 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 88 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 843ebdadcc38d..6b73c678bc527 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4158,6 +4158,15 @@ githubId = 147284; name = "Jason Felice"; }; + ercao = { + email = "vip@ercao.cn"; + github = "ercao"; + githubId = 51725284; + name = "ercao"; + keys = [{ + fingerprint = "F3B0 36F7 B0CB 0964 3C12 D3C7 FFAB D125 7ECF 0889"; + }]; + }; erdnaxe = { email = "erdnaxe@crans.org"; github = "erdnaxe"; diff --git a/pkgs/applications/graphics/figma-linux/default.nix b/pkgs/applications/graphics/figma-linux/default.nix new file mode 100644 index 0000000000000..1afc65ea0fc10 --- /dev/null +++ b/pkgs/applications/graphics/figma-linux/default.nix @@ -0,0 +1,77 @@ +{ pkgs +, lib +, stdenv +, fetchurl +, autoPatchelfHook +, dpkg +, ... +}: +with lib; +stdenv.mkDerivation rec { + pname = "figma-linux"; + version = "0.10.0"; + + src = fetchurl { + url = "https://github.com/Figma-Linux/figma-linux/releases/download/v${version}/figma-linux_${version}_linux_amd64.deb"; + sha256 = "sha256-+xiXEwSSxpt1/Eu9g57/L+Il/Av+a/mgGBQl/4LKR74="; + }; + + nativeBuildInputs = [ autoPatchelfHook dpkg ]; + + buildInputs = with pkgs;[ + alsa-lib + at-spi2-atk + cairo + cups.lib + dbus.lib + expat + gdk-pixbuf + glib + gtk3 + libdrm + libxkbcommon + mesa + nspr + nss + pango + ] ++ (with pkgs.xorg; [ + libX11 + libXcomposite + libXdamage + libXext + libXfixes + libXrandr + libxcb + libxshmfence + ]); + + runtimeDependencies = with pkgs; [ eudev ]; + + unpackCmd = "dpkg -x $src ."; + + sourceRoot = "."; + + installPhase = '' + runHook preInstall + + mkdir -p $out/lib && cp -r opt/figma-linux/* $_ + mkdir -p $out/bin && ln -s $out/lib/figma-linux $_/figma-linux + + cp -r usr/* $out + + runHook postInstall + ''; + + postFixup = '' + substituteInPlace $out/share/applications/figma-linux.desktop \ + --replace "Exec=/opt/figma-linux/figma-linux" "Exec=$out/bin/${pname}" + ''; + + meta = { + description = "unofficial Electron-based Figma desktop app for Linux"; + homepage = "https://github.com/Figma-Linux/figma-linux"; + platforms = [ "x86_64-linux" ]; + license = licenses.gpl2; + maintainers = with maintainers; [ ercao ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8fe5c03a38c8e..a765f43b40574 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -482,6 +482,8 @@ with pkgs; expressvpn = callPackage ../applications/networking/expressvpn { }; + figma-linux = callPackage ../applications/graphics/figma-linux {}; + firefly-desktop = callPackage ../applications/misc/firefly-desktop { }; frece = callPackage ../development/tools/frece { }; |