Merge pull request #29439 from oxij/pkgs/notmuch-gmime-3
gmime3: init; notmuch: use gmime3
This commit is contained in:
commit
2d3886262e
@ -1,4 +1,4 @@
|
|||||||
{ fetchurl, stdenv, fixDarwinDylibNames, gdb
|
{ fetchurl, stdenv, fixDarwinDylibNames
|
||||||
, pkgconfig, gnupg
|
, pkgconfig, gnupg
|
||||||
, xapian, gmime, talloc, zlib
|
, xapian, gmime, talloc, zlib
|
||||||
, doxygen, perl
|
, doxygen, perl
|
||||||
@ -6,9 +6,11 @@
|
|||||||
, bash-completion
|
, bash-completion
|
||||||
, emacs
|
, emacs
|
||||||
, ruby
|
, ruby
|
||||||
, which, dtach, openssl, bash
|
, which, dtach, openssl, bash, gdb, man
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.25";
|
version = "0.25";
|
||||||
name = "notmuch-${version}";
|
name = "notmuch-${version}";
|
||||||
@ -32,19 +34,11 @@ stdenv.mkDerivation rec {
|
|||||||
emacs # (optional) to byte compile emacs code
|
emacs # (optional) to byte compile emacs code
|
||||||
ruby # (optional) ruby bindings
|
ruby # (optional) ruby bindings
|
||||||
which dtach openssl bash # test dependencies
|
which dtach openssl bash # test dependencies
|
||||||
]
|
]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames
|
++ optional stdenv.isDarwin fixDarwinDylibNames
|
||||||
++ stdenv.lib.optional (!stdenv.isDarwin) gdb;
|
++ optionals (!stdenv.isDarwin) [ gdb man ]; # test dependencies
|
||||||
|
|
||||||
doCheck = !stdenv.isDarwin;
|
|
||||||
checkTarget = "test";
|
|
||||||
|
|
||||||
patchPhase = ''
|
|
||||||
# XXX: disabling few tests since i have no idea how to make them pass for now
|
|
||||||
rm -f test/T010-help-test.sh \
|
|
||||||
test/T350-crypto.sh \
|
|
||||||
test/T355-smime.sh
|
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
find test -type f -exec \
|
find test -type f -exec \
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "1s|#!/usr/bin/env bash|#!${bash}/bin/bash|" \
|
-e "1s|#!/usr/bin/env bash|#!${bash}/bin/bash|" \
|
||||||
@ -65,7 +59,9 @@ stdenv.mkDerivation rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
|
makeFlags = "V=1";
|
||||||
|
|
||||||
|
preFixup = optionalString stdenv.isDarwin ''
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
@ -92,12 +88,16 @@ stdenv.mkDerivation rec {
|
|||||||
install_name_tool -change "$badname" "$goodname" "$prg"
|
install_name_tool -change "$badname" "$goodname" "$prg"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = !stdenv.isDarwin && (versionAtLeast gmime.version "3.0");
|
||||||
|
checkTarget = "test V=1";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
make install-man
|
make install-man
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontGzipMan = true; # already compressed
|
dontGzipMan = true; # already compressed
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = {
|
||||||
description = "Mail indexer";
|
description = "Mail indexer";
|
||||||
homepage = https://notmuchmail.org/;
|
homepage = https://notmuchmail.org/;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, glib, zlib, libgpgerror, gobjectIntrospection }:
|
{ stdenv, fetchurl, pkgconfig, glib, zlib, libgpgerror, gobjectIntrospection }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gmime-2.6.23";
|
version = "2.6.23";
|
||||||
|
name = "gmime-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/gmime/2.6/${name}.tar.xz";
|
url = "mirror://gnome/sources/gmime/2.6/${name}.tar.xz";
|
||||||
@ -16,10 +17,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/jstedfast/gmime/;
|
homepage = https://github.com/jstedfast/gmime/;
|
||||||
description = "A C/C++ library for creating, editing and parsing MIME messages and structures";
|
description = "A C/C++ library for creating, editing and parsing MIME messages and structures";
|
||||||
maintainers = [ stdenv.lib.maintainers.chaoflow ];
|
license = licenses.lgpl21Plus;
|
||||||
platforms = stdenv.lib.platforms.unix;
|
maintainers = with maintainers; [ chaoflow ];
|
||||||
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
27
pkgs/development/libraries/gmime/3.nix
Normal file
27
pkgs/development/libraries/gmime/3.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ stdenv, fetchurl, pkgconfig, glib, zlib, gpgme, libidn, gobjectIntrospection }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "3.0.1";
|
||||||
|
name = "gmime-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://gnome/sources/gmime/3.0/${name}.tar.xz";
|
||||||
|
sha256 = "001y93b8mq9alzkvli6vfh3pzdcn5c5iy206ml23lzhhhvm5k162";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgconfig gobjectIntrospection ];
|
||||||
|
propagatedBuildInputs = [ glib zlib gpgme libidn ];
|
||||||
|
configureFlags = [ "--enable-introspection=yes" ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/jstedfast/gmime/;
|
||||||
|
description = "A C/C++ library for creating, editing and parsing MIME messages and structures";
|
||||||
|
license = licenses.lgpl21Plus;
|
||||||
|
maintainers = with maintainers; [ chaoflow ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
@ -8190,7 +8190,9 @@ with pkgs;
|
|||||||
|
|
||||||
glui = callPackage ../development/libraries/glui {};
|
glui = callPackage ../development/libraries/glui {};
|
||||||
|
|
||||||
gmime = callPackage ../development/libraries/gmime { };
|
gmime2 = callPackage ../development/libraries/gmime/2.nix { };
|
||||||
|
gmime3 = callPackage ../development/libraries/gmime/3.nix { };
|
||||||
|
gmime = gmime2;
|
||||||
|
|
||||||
gmm = callPackage ../development/libraries/gmm { };
|
gmm = callPackage ../development/libraries/gmm { };
|
||||||
|
|
||||||
@ -15585,7 +15587,9 @@ with pkgs;
|
|||||||
|
|
||||||
notepadqq = libsForQt56.callPackage ../applications/editors/notepadqq { };
|
notepadqq = libsForQt56.callPackage ../applications/editors/notepadqq { };
|
||||||
|
|
||||||
notmuch = callPackage ../applications/networking/mailreaders/notmuch { };
|
notmuch = callPackage ../applications/networking/mailreaders/notmuch {
|
||||||
|
gmime = gmime3;
|
||||||
|
};
|
||||||
|
|
||||||
notmuch-mutt = callPackage ../applications/networking/mailreaders/notmuch/mutt.nix { };
|
notmuch-mutt = callPackage ../applications/networking/mailreaders/notmuch/mutt.nix { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user