mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
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:
parent
9fc4c55620
commit
d711528c8b
@ -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";
|
||||
|
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user