From 29a0dce77b4cb1dfc4216ff8d4060676ec0ba387 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Thu, 27 Jul 2023 12:30:27 -0500 Subject: [PATCH] Add xontrib-vox for now --- overlays/default.nix | 3 ++- overlays/xonsh-vox.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 overlays/xonsh-vox.nix diff --git a/overlays/default.nix b/overlays/default.nix index 9a0c89a..e1c9ca1 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -17,7 +17,6 @@ let tox typing-extensions virtualenv - xonsh-direnv ]; myPython = prev.python3.withPackages myPackages; @@ -42,6 +41,7 @@ in rec { django-rapyd-modernauth = cp ./django-rapyd-modernauth.nix {}; xonsh-apipenv = cp ./xonsh-apipenv.nix {}; xonsh-direnv = cp ./xonsh-direnv.nix {}; + xontrib-vox = cp ./xonsh-vox.nix {}; copier = cp ./copier.nix { inherit (python-final) iteration-utilities @@ -70,6 +70,7 @@ in rec { propagatedBuildInputs = with final.gregpy.pkgs; old.propagatedBuildInputs ++ [ xonsh-apipenv xonsh-direnv + xontrib-vox ]; }); diff --git a/overlays/xonsh-vox.nix b/overlays/xonsh-vox.nix new file mode 100644 index 0000000..6a458fe --- /dev/null +++ b/overlays/xonsh-vox.nix @@ -0,0 +1,30 @@ +{ lib, buildPythonPackage, fetchFromGitHub, pkgs}: + +buildPythonPackage rec { + pname = "xontrib-vox"; + version = "0.0.1"; + + src = fetchFromGitHub { + owner = "xonsh"; + repo = "xontrib-vox"; + rev = "0.0.1"; + hash = "sha256-OB1O5GZYkg7Ucaqak3MncnQWXhMD4BM4wXsYCDD0mhk="; + }; + + prePatch = '' + substituteInPlace pyproject.toml --replace '"xonsh>=0.12.5"' "" + ''; + + meta = with lib; { + description = "Direnv support for Xonsh"; + homepage = "https://github.com/74th/xonsh-direnv/"; + license = licenses.mit; + maintainers = []; + }; + + doCheck = false; + + nativeBuildInputs = [ + pkgs.git + ]; +}