Skip to content

Commit

Permalink
meli: 0.8.6 -> 0.8.7 (#338258)
Browse files Browse the repository at this point in the history
  • Loading branch information
cafkafk authored Aug 31, 2024
2 parents 6414ef7 + e9df614 commit 151889c
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions pkgs/by-name/me/meli/package.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ stdenv
, lib
, fetchzip
, fetchpatch
, rustPlatform

# native build inputs
Expand All @@ -23,18 +24,27 @@

rustPlatform.buildRustPackage rec {
pname = "meli";
version = "0.8.6";
version = "0.8.7";

src = fetchzip {
urls = [
"https://git.meli-email.org/meli/meli/archive/v${version}.tar.gz"
"https://codeberg.org/meli/meli/archive/v${version}.tar.gz"
"https://github.com/meli/meli/archive/refs/tags/v${version}.tar.gz"
];
hash = "sha256-7lSxXv2i8B6vRWIJqMiXlMqHH6fmgACy9X5qNKuj+IU=";
hash = "sha256-2+JIehi2wuWdARbhFPvNPIJ9ucZKWjNSORszEG9lyjw=";
};

cargoHash = "sha256-vZkMfaALnRBK9ZwMB2uvvJgQq+BdUX7enNnr9t5H+MY=";
cargoHash = "sha256-ZVhUkpiiPKbWcf56cXFgn3Nyr63STHLlD7mpYEetNIY=";

cargoPatches = [
(fetchpatch {
# https://github.com/NixOS/nixpkgs/issues/332957#issuecomment-2278578811
name = "fix-rust-1.80-compat.patch";
url = "https://git.meli-email.org/meli/meli/commit/6b05279a0987315c401516cac8ff0b016a8e02a8.patch";
hash = "sha256-mh8H7wmHMXAe01UTvdY8vJeeLyH6ZFwylNLFFL+4LO0=";
})
];

# Needed to get openssl-sys to use pkg-config
OPENSSL_NO_VENDOR=1;
Expand All @@ -55,6 +65,7 @@ rustPlatform.buildRustPackage rec {

nativeCheckInputs = [
file
gnum4
];

postInstall = ''
Expand All @@ -70,10 +81,9 @@ rustPlatform.buildRustPackage rec {
'';

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
"--skip=conf::tests::test_config_parse" # panicking due to sandbox
"--skip=utils::tests::test_shellexpandtrait_impls" # panicking due to sandbox
"--skip=utils::tests::test_shellexpandtrait" # panicking due to sandbox
];

meta = with lib; {
Expand Down

0 comments on commit 151889c

Please sign in to comment.