2024-05-14 19:46:39 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
|
|
|
xonsh-direnv =
|
|
|
|
ps:
|
|
|
|
ps.buildPythonPackage rec {
|
|
|
|
pname = "xonsh-direnv";
|
|
|
|
version = "1.6.1";
|
|
|
|
src = pkgs.fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-Nt8Da1EtMVWZ9mbBDjys7HDutLYifwoQ1HVmI5CN2Ww=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
xontrib-fish-completer =
|
|
|
|
ps:
|
|
|
|
ps.buildPythonPackage rec {
|
|
|
|
pname = "xontrib-fish-completer";
|
|
|
|
version = "0.0.1";
|
|
|
|
src = pkgs.fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-Kr1iolx6DxqgxVNtXwwfggkLrbH9BlilGAYZahvR+3Y=";
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = "sed -i -e 's/^dependencies.*$/dependencies = []/' pyproject.toml";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
programs.xonsh = {
|
|
|
|
enable = true;
|
|
|
|
config = ''
|
|
|
|
$UPDATE_OS_ENVIRON = True
|
|
|
|
xontrib load direnv fish_completer
|
|
|
|
'';
|
2024-06-26 08:40:08 +00:00
|
|
|
package = pkgs.xonsh.wrapper.override {
|
2024-05-14 19:46:39 +00:00
|
|
|
extraPackages = ps: [
|
|
|
|
(xonsh-direnv ps)
|
|
|
|
(xontrib-fish-completer ps)
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|