2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, glib, notmuch }:
|
2016-01-09 22:08:17 +00:00
|
|
|
|
2018-02-11 09:11:34 +00:00
|
|
|
let
|
|
|
|
version = "9";
|
|
|
|
in
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "notmuch-addrlookup";
|
|
|
|
inherit version;
|
2016-01-09 22:08:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aperezdc";
|
|
|
|
repo = "notmuch-addrlookup-c";
|
|
|
|
rev ="v${version}";
|
2018-02-11 09:11:34 +00:00
|
|
|
sha256 = "1j3zdx161i1x4w0nic14ix5i8hd501rb31daf8api0k8855sx4rc";
|
2016-01-09 22:08:17 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ glib notmuch ];
|
2016-01-09 22:08:17 +00:00
|
|
|
|
2018-02-11 09:11:34 +00:00
|
|
|
installPhase = "install -D notmuch-addrlookup $out/bin/notmuch-addrlookup";
|
2016-01-09 22:08:17 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-01-09 22:08:17 +00:00
|
|
|
description = "Address lookup tool for Notmuch in C";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/aperezdc/notmuch-addrlookup-c";
|
2019-07-03 10:27:39 +01:00
|
|
|
maintainers = with maintainers; [ mog ];
|
2018-02-11 09:11:34 +00:00
|
|
|
platforms = platforms.unix;
|
2016-01-09 22:08:17 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|