Make development experience work

Add direnv to default build
Add xonsh-direnv package to overlay and xonsh environment
Add virtualisation options
This commit is contained in:
Greg Hellings
2022-05-04 13:57:19 -05:00
parent 2d333a9128
commit f18d1f357c
13 changed files with 97 additions and 9 deletions
+12
View File
@@ -0,0 +1,12 @@
self: super:
{
xonsh-direnv = super.callPackage ./xonsh-direnv.nix {
#lib = self.lib;
buildPythonPackage = self.python3.pkgs.buildPythonPackage;
fetchPypi = self.python.pkgs.fetchPypi;
};
xonsh = super.xonsh.overridePythonAttrs (old: rec{
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.xonsh-direnv ];
});
}
-6
View File
@@ -1,6 +0,0 @@
self: super:
{
git = super.git.override {
meta.priority = 4;
};
}
+20
View File
@@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchPypi, pkgs}:
buildPythonPackage rec {
pname = "xonsh-direnv";
version = "1.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "OLjtGD2lX4Yf3aHrxCWmAbSPZnf8OuVrBu0VFbsna1Y=";
};
meta = with lib; {
description = "Direnv support for Xonsh";
homepage = "https://github.com/74th/xonsh-direnv/";
license = licenses.mit;
maintainers = [];
};
doCheck = false;
}