pythonPackages: notmuch: revert 6258728, move sourceRoot setting to top-level notmuch

Looks like this is the only way to do what 6258728318
was expected to do that doesn't break things and doesn't look like a complete hack.

The problem is that different `fetch`ers generate very different results (from
archive files to plain source trees) and allowing overriding `src` in top-level
derivation when there is a derived python package is no trivial matter.
This commit is contained in:
Jan Malakhovski 2015-03-31 05:36:28 +00:00
parent 9fc4c55620
commit d711528c8b
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,10 @@
stdenv.mkDerivation rec {
name = "notmuch-0.19";
passthru = {
pythonSourceRoot = "${name}/bindings/python";
};
src = fetchurl {
url = "http://notmuchmail.org/releases/${name}.tar.gz";
sha256 = "1szf6c44g209pcjq5nvfhlp3nzcm3lrcwv4spsxmwy13hiaccvrr";

View File

@ -7075,7 +7075,7 @@ let
src = pkgs.notmuch.src;
sourceRoot = "${pkgs.notmuch.src.name}/bindings/python";
sourceRoot = pkgs.notmuch.pythonSourceRoot;
buildInputs = with self; [ python pkgs.notmuch ];