pkgs/promnesia,hpi: wrap bins so libs can be found

This commit is contained in:
Aaron Bieber 2023-02-13 13:45:45 -07:00
parent 29bfb19bb1
commit 658b02e188
No known key found for this signature in database
2 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{ pkgs, buildPythonPackage, setuptools-scm, pytest, fetchPypi, appdirs, click { pkgs, buildPythonPackage, setuptools-scm, pytest, fetchPypi, appdirs, click
, decorator, geopy, logzero, lxml, more-itertools, mypy, orjson, pandas, pytz , decorator, geopy, logzero, lxml, more-itertools, mypy, orjson, pandas, pytz
, simplejson, ... }: , simplejson, ... }:
with pkgs;
let let
orgparse = pkgs.python3Packages.callPackage ./orgparse.nix { inherit pkgs; }; orgparse = pkgs.python3Packages.callPackage ./orgparse.nix { inherit pkgs; };
kobuddy = pkgs.python3Packages.callPackage ./kobuddy.nix { inherit pkgs; }; kobuddy = pkgs.python3Packages.callPackage ./kobuddy.nix { inherit pkgs; };
@ -35,6 +35,12 @@ in buildPythonPackage rec {
buildInputs = [ mypy kobuddy ]; buildInputs = [ mypy kobuddy ];
makeWrapperArgs = [
# Add the installed directories to the python path so the daemon can find them
"--prefix PYTHONPATH : ${python3.pkgs.makePythonPath propagatedBuildInputs}"
"--prefix PYTHONPATH : $out/lib/${python3.libPrefix}/site-packages"
];
preCheck = '' preCheck = ''
export HOME=$(mktemp -d) export HOME=$(mktemp -d)
''; '';

View File

@ -45,6 +45,12 @@ in buildPythonPackage rec {
websockets websockets
]; ];
makeWrapperArgs = [
# Add the installed directories to the python path so the daemon can find them
"--prefix PYTHONPATH : ${python3.pkgs.makePythonPath propagatedBuildInputs}"
"--prefix PYTHONPATH : $out/lib/${python3.libPrefix}/site-packages"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/karlicoss/promnesia"; homepage = "https://github.com/karlicoss/promnesia";
description = "Another piece of your extended mind"; description = "Another piece of your extended mind";