11 stdenv.mkDerivation (finalAttrs: {
12 pname = "figma-linux";
16 url = "https://github.com/Figma-Linux/figma-linux/releases/download/v${finalAttrs.version}/figma-linux_${finalAttrs.version}_linux_amd64.deb";
17 hash = "sha256-9UfyCqgsg9XAFyZ7V7TogkQou4x+ixFUfjXZ1/qlDmA=";
20 nativeBuildInputs = [ autoPatchelfHook dpkg wrapGAppsHook ];
22 buildInputs = with pkgs;[
38 ] ++ (with pkgs.xorg; [
49 runtimeDependencies = with pkgs; [ eudev ];
51 unpackCmd = "dpkg -x $src .";
58 mkdir -p $out/lib && cp -r opt/figma-linux/* $_
59 mkdir -p $out/bin && ln -s $out/lib/figma-linux $_/figma-linux
67 substituteInPlace $out/share/applications/figma-linux.desktop \
68 --replace "Exec=/opt/figma-linux/figma-linux" "Exec=$out/bin/${finalAttrs.pname}"
72 description = "Unofficial Electron-based Figma desktop app for Linux";
73 homepage = "https://github.com/Figma-Linux/figma-linux";
74 platforms = [ "x86_64-linux" ];
75 license = licenses.gpl2Plus;
76 maintainers = with maintainers; [ ercao kashw2 ];
77 mainProgram = "figma-linux";