summary refs log tree commit diff
path: root/pkgs/applications/networking/mailreaders/notmuch-addrlookup/default.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2018-02-11 10:11:34 +0100
committerFlorian Klink <flokli@flokli.de>2018-02-11 20:59:43 +0100
commitb89aad47188a59583c3c7e893b6439a88089599e (patch)
tree73ee0efeff0398ae95fb701ea5b32b2c59cdea51 /pkgs/applications/networking/mailreaders/notmuch-addrlookup/default.nix
parente860b651d6e297658e960c165fd231dbc0de1f9b (diff)
downloadnixlib-b89aad47188a59583c3c7e893b6439a88089599e.tar
nixlib-b89aad47188a59583c3c7e893b6439a88089599e.tar.gz
nixlib-b89aad47188a59583c3c7e893b6439a88089599e.tar.bz2
nixlib-b89aad47188a59583c3c7e893b6439a88089599e.tar.lz
nixlib-b89aad47188a59583c3c7e893b6439a88089599e.tar.xz
nixlib-b89aad47188a59583c3c7e893b6439a88089599e.tar.zst
nixlib-b89aad47188a59583c3c7e893b6439a88089599e.zip
notmuch-addrlookup: 7 -> 9
This version bump contains the following fixes:

v8:
 - Avoid a segmentation fault when notmuch_message_get_header() returns NULL. (Patch by Víctor M. Jáquez <vjaquez@igalia.com>).

v9:
 - Do not use the deprecated notmuch_query_count_messages_st function when using Notmuch 0.25. (Patch by Adam Ruzicka <a.ruzicka@outlook.com>.)
   We already had this patch in our tree.
 - Fix crash in when running queries and the program is build with Notmuch 0.25. (Patch by Joshua Krusell <joshua.krusell@v-dem.net>).
 - Fix conditional compilation when using Notmuch 0.25. (Patch by David Bremner <bremner@debian.org>).
Diffstat (limited to 'pkgs/applications/networking/mailreaders/notmuch-addrlookup/default.nix')
-rw-r--r--pkgs/applications/networking/mailreaders/notmuch-addrlookup/default.nix16
1 files changed, 6 insertions, 10 deletions
diff --git a/pkgs/applications/networking/mailreaders/notmuch-addrlookup/default.nix b/pkgs/applications/networking/mailreaders/notmuch-addrlookup/default.nix
index f5d48d03c96a..c2cce227576a 100644
--- a/pkgs/applications/networking/mailreaders/notmuch-addrlookup/default.nix
+++ b/pkgs/applications/networking/mailreaders/notmuch-addrlookup/default.nix
@@ -1,32 +1,28 @@
 { stdenv, fetchFromGitHub, pkgconfig, glib, notmuch }:
 
+let
+  version = "9";
+in
 stdenv.mkDerivation rec {
   name = "notmuch-addrlookup-${version}";
-  version = "7";
 
   src = fetchFromGitHub {
     owner = "aperezdc";
     repo = "notmuch-addrlookup-c";
     rev ="v${version}";
-    sha256 = "0mz0llf1ggl1k46brgrqj3i8qlg1ycmkc5a3a0kg8fg4s1c1m6xk";
+    sha256 = "1j3zdx161i1x4w0nic14ix5i8hd501rb31daf8api0k8855sx4rc";
   };
 
   nativeBuildInputs = [ pkgconfig ];
   buildInputs = [ glib notmuch ];
 
-  # Required until notmuch-addrlookup can be compiled against notmuch >= 0.25
-  patches = [ ./0001-notmuch-0.25-compatibility-fix.patch ];
-
-  installPhase = ''
-    mkdir -p "$out/bin"
-    cp notmuch-addrlookup "$out/bin"
-  '';
+  installPhase = "install -D notmuch-addrlookup $out/bin/notmuch-addrlookup";
 
   meta = with stdenv.lib; {
     description = "Address lookup tool for Notmuch in C";
     homepage = https://github.com/aperezdc/notmuch-addrlookup-c;
     maintainers = with maintainers; [ mog garbas ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
     license = licenses.mit;
   };
 }