Merge pull request #255767 from pacien/meli-0-8-1

meli: re-introduce at 0.8.1
This commit is contained in:
Matthias Beyer 2023-09-18 09:58:02 +02:00 committed by GitHub
commit 48216fda18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 81 additions and 1 deletions

View File

@ -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;
};
}

View File

@ -1102,7 +1102,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

View File

@ -33860,6 +33860,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 { };