25 rustPlatform.buildRustPackage rec {
31 "https://git.meli-email.org/meli/meli/archive/v${version}.tar.gz"
32 "https://codeberg.org/meli/meli/archive/v${version}.tar.gz"
33 "https://github.com/meli/meli/archive/refs/tags/v${version}.tar.gz"
35 hash = "sha256-2+JIehi2wuWdARbhFPvNPIJ9ucZKWjNSORszEG9lyjw=";
38 cargoHash = "sha256-ZVhUkpiiPKbWcf56cXFgn3Nyr63STHLlD7mpYEetNIY=";
42 # https://github.com/NixOS/nixpkgs/issues/332957#issuecomment-2278578811
43 name = "fix-rust-1.80-compat.patch";
44 url = "https://git.meli-email.org/meli/meli/commit/6b05279a0987315c401516cac8ff0b016a8e02a8.patch";
45 hash = "sha256-mh8H7wmHMXAe01UTvdY8vJeeLyH6ZFwylNLFFL+4LO0=";
49 # Needed to get openssl-sys to use pkg-config
57 (rustfmt.override { asNightly = true; })
72 installManPage meli/docs/*.{1,5,7}
74 wrapProgram $out/bin/meli \
75 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gpgme ]} \
76 --prefix PATH : ${lib.makeBinPath [ gnum4 ]}
80 export HOME=$(mktemp -d)
84 "--skip=conf::tests::test_config_parse" # panicking due to sandbox
85 "--skip=utils::tests::test_shellexpandtrait_impls" # panicking due to sandbox
86 "--skip=utils::tests::test_shellexpandtrait" # panicking due to sandbox
90 broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
91 description = "Terminal e-mail client and e-mail client library";
93 homepage = "https://meli.delivery";
94 license = licenses.gpl3;
95 maintainers = with maintainers; [ _0x4A6F matthiasbeyer ];
96 platforms = platforms.linux;