wow
Some checks failed
CI / check (push) Has been cancelled
CI / list-packages (push) Has been cancelled

This commit is contained in:
암냥 2026-09-14 11:07:35 +09:00
commit 719080e04c
No known key found for this signature in database

View file

@ -13,11 +13,23 @@ let
hash = "sha256-SLn4y+NVCcBDZrGqIpmpIEQavY7xngt5JMI8yG1g6/0=";
};
appimageContents = appimageTools.extract { inherit pname version src; };
in
appimageTools.wrapType2 {
appimageContents = appimageTools.extract {
inherit pname version src;
# The upstream AppImage registers an AppImage-specific desktop entry at
# runtime. That bypasses this package's FHS wrapper when a figma:// URL is
# opened, so Electron cannot find libraries such as libnspr4.so.
postExtract = ''
substituteInPlace $out/AppRun \
--replace-fail 'integrate_desktop 2>/dev/null || true' \
'true # Desktop integration is provided by the Nix package'
'';
};
in
appimageTools.wrapAppImage {
inherit pname version;
src = appimageContents;
extraInstallCommands = ''
install -Dm444 ${appimageContents}/usr/share/applications/io.github.nickvdp.figma-desktop-linux.desktop \
-t $out/share/applications