buildPython*: use pname

This commit is contained in:
Frederik Rietdijk
2020-03-29 12:34:50 +02:00
parent 237bf9e7bc
commit 46ec52f329
24 changed files with 55 additions and 46 deletions

View File

@@ -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
'';