Silvan Mosberger 84d4f874c2 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 78e9caf153f5a339bf1d4c000ff6f0a503a369c8
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00

114 lines
2.4 KiB
Nix

{
stdenv,
lib,
fetchurl,
dpkg,
autoPatchelfHook,
copyDesktopItems,
pango,
gtk3,
alsa-lib,
nss,
libXdamage,
libdrm,
libgbm,
libxshmfence,
makeDesktopItem,
makeWrapper,
wrapGAppsHook3,
gcc-unwrapped,
udev,
}:
stdenv.mkDerivation rec {
pname = "bluemail";
version = "1.140.8-1922";
# Taking a snapshot of the DEB release because there are no tagged version releases.
# For new versions, download the upstream release, extract it and check for the version string.
# In case there's a new version, create a snapshot of it on https://archive.org before updating it here.
src = fetchurl {
url = "https://web.archive.org/web/20240208120704/https://download.bluemail.me/BlueMail/deb/BlueMail.deb";
hash = "sha256-dnYOb3Q/9vSDssHGS2ywC/Q24Oq96/mvKF+eqd/4dVw=";
};
desktopItems = [
(makeDesktopItem {
name = "bluemail";
icon = "bluemail";
exec = "bluemail";
desktopName = "BlueMail";
comment = meta.description;
genericName = "Email Reader";
mimeTypes = [
"x-scheme-handler/me.blueone.linux"
"x-scheme-handler/mailto"
];
categories = [ "Office" ];
})
];
nativeBuildInputs = [
autoPatchelfHook
copyDesktopItems
makeWrapper
dpkg
wrapGAppsHook3
];
buildInputs = [
pango
gtk3
alsa-lib
nss
libXdamage
libdrm
libgbm
libxshmfence
udev
];
dontBuild = true;
dontStrip = true;
dontWrapGApps = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mv opt/BlueMail/* $out
ln -s $out/bluemail $out/bin/bluemail
mkdir -p $out/share/icons
mv usr/share/icons/hicolor $out/share/icons/
runHook postInstall
'';
makeWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [
gcc-unwrapped.lib
gtk3
udev
]
}"
"--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}"
];
preFixup = ''
wrapProgram $out/bin/bluemail \
''${makeWrapperArgs[@]} \
''${gappsWrapperArgs[@]}
'';
meta = with lib; {
description = "Free, secure, universal email app, capable of managing an unlimited number of mail accounts";
homepage = "https://bluemail.me";
license = licenses.unfree;
platforms = platforms.linux;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ onny ];
};
}