pkgs/promnesia,hpi: wrap bins so libs can be found
This commit is contained in:
parent
29bfb19bb1
commit
658b02e188
@ -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)
|
||||||
'';
|
'';
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user