Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 28 lines 562 B view raw
1{ stdenv 2, buildPythonPackage 3, pkgs 4, python 5}: 6 7buildPythonPackage rec { 8 name = "python-${pkgs.notmuch.name}"; 9 10 src = pkgs.notmuch.src; 11 12 sourceRoot = pkgs.notmuch.pythonSourceRoot; 13 14 buildInputs = [ python pkgs.notmuch ]; 15 16 postPatch = '' 17 sed -i -e '/CDLL/s@"libnotmuch\.@"${pkgs.notmuch}/lib/libnotmuch.@' \ 18 notmuch/globals.py 19 ''; 20 21 meta = with stdenv.lib; { 22 description = "A Python wrapper around notmuch"; 23 homepage = https://notmuchmail.org/; 24 license = licenses.gpl3; 25 maintainers = with maintainers; [ garbas ]; 26 }; 27 28}