mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
fastmail-desktop: remove LD_LIBRARY_PATH and musl dependenciess
This commit is contained in:
@@ -4,18 +4,13 @@
|
||||
src,
|
||||
passthru,
|
||||
meta,
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
appimageTools,
|
||||
asar,
|
||||
autoPatchelfHook,
|
||||
makeWrapper,
|
||||
electron,
|
||||
libxscrnsaver,
|
||||
libxtst,
|
||||
libappindicator,
|
||||
libgcc,
|
||||
musl,
|
||||
vips,
|
||||
}:
|
||||
let
|
||||
@@ -37,16 +32,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
|
||||
buildInputs = [
|
||||
libgcc
|
||||
musl
|
||||
vips
|
||||
];
|
||||
|
||||
libPath = lib.makeLibraryPath [
|
||||
libxscrnsaver
|
||||
libxtst
|
||||
libappindicator
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
@@ -71,13 +59,17 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
makeWrapper "${electron}/bin/electron" "$out/bin/fastmail" \
|
||||
--add-flags "$out/opt/fastmail/app.asar.unpacked" \
|
||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-wayland-ime=true --wayland-text-input-version=3}}" \
|
||||
--prefix LD_LIBRARY_PATH : ${finalAttrs.libPath}:$out/opt/fastmail \
|
||||
--set-default ELECTRON_IS_DEV 0 \
|
||||
--inherit-argv0
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
# remove musl-libc dependencies before the autoPatchelfHook
|
||||
preFixup = ''
|
||||
rm -r "$out/opt/fastmail/app.asar.unpacked/node_modules/@img/"{sharp-linuxmusl-x64,sharp-libvips-linuxmusl-x64}
|
||||
'';
|
||||
|
||||
meta = meta // {
|
||||
mainProgram = "fastmail";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user