python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / gmime / 3.nix
blob4ec99d2e18f3aa1c4f381e594235d698b7c0583e
1 { lib, stdenv, fetchurl, pkg-config, glib, zlib, gnupg, gpgme, libidn2, libunistring, gobject-introspection
2 , vala }:
4 stdenv.mkDerivation rec {
5   version = "3.2.12";
6   pname = "gmime";
8   src = fetchurl { # https://github.com/jstedfast/gmime/releases
9     url = "https://github.com/jstedfast/gmime/releases/download/${version}/gmime-${version}.tar.xz";
10     sha256 = "sha256-OPm3aBgjQsSExBIobbjVgRaX/4FiQ3wFea3w0G4icFs=";
11   };
13   outputs = [ "out" "dev" ];
15   buildInputs = [ vala gobject-introspection zlib gpgme libidn2 libunistring ];
16   nativeBuildInputs = [ pkg-config ];
17   propagatedBuildInputs = [ glib ];
18   configureFlags = [
19     "--enable-introspection=yes"
20     "--enable-vala=yes"
21   ];
23   postPatch = ''
24     substituteInPlace tests/testsuite.c \
25       --replace /bin/rm rm
26   '';
28   checkInputs = [ gnupg ];
30   doCheck = true;
32   enableParallelBuilding = true;
34   meta = with lib; {
35     homepage = "https://github.com/jstedfast/gmime/";
36     description = "A C/C++ library for creating, editing and parsing MIME messages and structures";
37     license = licenses.lgpl21Plus;
38     maintainers = with maintainers; [ ];
39     platforms = platforms.unix;
40   };