mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
29 lines
562 B
Nix
29 lines
562 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, pkgs
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
name = "python-${pkgs.notmuch.name}";
|
|
|
|
src = pkgs.notmuch.src;
|
|
|
|
sourceRoot = pkgs.notmuch.pythonSourceRoot;
|
|
|
|
buildInputs = [ python pkgs.notmuch ];
|
|
|
|
postPatch = ''
|
|
sed -i -e '/CDLL/s@"libnotmuch\.@"${pkgs.notmuch}/lib/libnotmuch.@' \
|
|
notmuch/globals.py
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A Python wrapper around notmuch";
|
|
homepage = https://notmuchmail.org/;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ garbas ];
|
|
};
|
|
|
|
}
|