meli: re-introduce at 0.8.1

This package had been dropped in ac019b9 because it required an
insecure version of openssl. This is no longer the case with this
update.

This new version also enables notmuch support by default in upstream,
detecting the presence of the binary purely at runtime. Therefore,
the matching package build switch has been removed.
This commit is contained in:
pacien
2023-09-18 00:19:45 +02:00
parent 5cbbc68e1b
commit 527e3dc045
3 changed files with 81 additions and 1 deletions
@@ -0,0 +1,79 @@
{ stdenv
, lib
, fetchgit
, rustPlatform
# native build inputs
, pkg-config
, installShellFiles
, makeWrapper
, mandoc
, rustfmt
, file
# build inputs
, openssl
, dbus
, sqlite
# runtime deps
, gnum4
}:
rustPlatform.buildRustPackage rec {
pname = "meli";
version = "0.8.1";
src = fetchgit {
url = "https://git.meli.delivery/meli/meli.git";
rev = "v${version}";
hash = "sha256-sHpW2yjqYz4ePR6aQFUBD6BZwgDt3DT22/kWuKr9fAc=";
};
cargoSha256 = "sha256-Pg3V6Bd+drFPiJtUwsoKxu6snN88KvM+lsvnWBK/rvk=";
nativeBuildInputs = [
pkg-config
installShellFiles
makeWrapper
mandoc
(rustfmt.override { asNightly = true; })
];
buildInputs = [
openssl
dbus
sqlite
];
nativeCheckInputs = [
file
];
postInstall = ''
installManPage meli/docs/*.{1,5,7}
wrapProgram $out/bin/meli \
--prefix PATH : ${lib.makeBinPath [ gnum4 ]}
'';
preCheck = ''
export HOME=$(mktemp -d)
'';
checkFlags = [
"--skip=conf::test_config_parse" # panicking due to sandbox
"--skip=smtp::test::test_smtp" # requiring network
"--skip=utils::xdg::query_default_app" # doesn't build
"--skip=utils::xdg::query_mime_info" # doesn't build
];
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64);
description = "Terminal e-mail client and e-mail client library";
homepage = "https://meli.delivery";
license = licenses.gpl3;
maintainers = with maintainers; [ _0x4A6F matthiasbeyer ];
platforms = platforms.linux;
};
}
-1
View File
@@ -1101,7 +1101,6 @@ mapAliases ({
mcgrid = throw "mcgrid has been removed from nixpkgs, as it's not compatible with rivet 3"; # Added 2020-05-23
mcomix3 = mcomix; # Added 2022-06-05
mediatomb = throw "mediatomb is no longer maintained upstream, use gerbera instead"; # added 2022-01-04
meli = throw "'meli' has been removed as it requires an outdated version of openssl"; # added 2023-05-12
meme = meme-image-generator; # Added 2021-04-21
memtest86 = throw "'memtest86' has been renamed to/replaced by 'memtest86plus'"; # Converted to throw 2022-02-22
mercurial_4 = throw "mercurial_4 has been removed as it's unmaintained"; # Added 2021-10-18
+2
View File
@@ -33866,6 +33866,8 @@ with pkgs;
meld = callPackage ../applications/version-management/meld { };
meli = callPackage ../applications/networking/mailreaders/meli { };
melmatcheq.lv2 = callPackage ../applications/audio/melmatcheq.lv2 { };
melody = callPackage ../tools/misc/melody { };