alot: fix ModuleNotFoundError of '_notmuch_config'

main
Rien Maertens 2 years ago
parent 9bc841fec1
commit da2a5558ab
No known key found for this signature in database
GPG Key ID: AE66CE42F1AF9DEF
  1. 6
      pkgs/applications/networking/mailreaders/alot/notmuch.nix
  2. 7
      pkgs/applications/networking/mailreaders/notmuch/default.nix

@ -14,6 +14,12 @@ buildPythonPackage {
buildInputs = [ python notmuch cffi ];
# since notmuch 0.35, this package expects _notmuch_config.py that is
# generated by notmuch's configure script
postPatch = ''
cp ${notmuch.bindingconfig}/_notmuch_config.py .
'';
# no tests
doCheck = false;
pythonImportsCheck = [ "notmuch2" ];

@ -62,7 +62,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
makeFlags = [ "V=1" ];
outputs = [ "out" "man" "info" ]
postConfigure = ''
mkdir ${placeholder "bindingconfig"}
cp bindings/python-cffi/_notmuch_config.py ${placeholder "bindingconfig"}/
'';
outputs = [ "out" "man" "info" "bindingconfig" ]
++ lib.optional withEmacs "emacs"
++ lib.optional withRuby "ruby";

Loading…
Cancel
Save