buildPython*: use pname
This commit is contained in:
@@ -1,20 +1,18 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, pkgs
|
||||
, notmuch
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
name = "python-${pkgs.notmuch.name}";
|
||||
inherit (notmuch) pname version src;
|
||||
|
||||
src = pkgs.notmuch.src;
|
||||
sourceRoot = notmuch.pythonSourceRoot;
|
||||
|
||||
sourceRoot = pkgs.notmuch.pythonSourceRoot;
|
||||
|
||||
buildInputs = [ python pkgs.notmuch ];
|
||||
buildInputs = [ python notmuch ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/CDLL/s@"libnotmuch\.@"${pkgs.notmuch}/lib/libnotmuch.@' \
|
||||
sed -i -e '/CDLL/s@"libnotmuch\.@"${notmuch}/lib/libnotmuch.@' \
|
||||
notmuch/globals.py
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user