diff --git a/nix-os/shell.nix b/nix-os/shell.nix index dcf3f24..0e263d8 100644 --- a/nix-os/shell.nix +++ b/nix-os/shell.nix @@ -2,10 +2,26 @@ let unstable = import {}; + rangerGit = pkgs.ranger.overrideAttrs (old: { + version = "git"; + src = pkgs.fetchFromGitHub { + owner = "ranger"; + repo = "ranger"; + rev = "c7777d558d5b69843b21f986e9af1af311c83887"; + hash = "sha256-DTVoEfc4dAaBTDLFujvWIYj5KHL89YknUiinIs9Rkeg="; + }; + propagatedBuildInputs = with pkgs.python3Packages; [ + # required for test suite, it's being ran during package build for some reason + flake8 + pylint + pytest + setuptools + ] ++ old.propagatedBuildInputs; + }); in { environment.systemPackages = with pkgs; [ - ranger + rangerGit kitty zoxide ]; @@ -38,6 +54,13 @@ in map drag ''; + environment.etc."ranger/plugins/zoxide.py".source = pkgs.fetchFromGitHub { + owner = "jchook"; + repo = "ranger-zoxide"; + rev = "281828de060299f73fe0b02fcabf4f2f2bd78ab3"; + hash = "sha256-JEuyYSVa1NS3aftezEJx/k19lwwzf7XhqBCL0jH6VT4="; + } + /__init__.py; + programs.direnv.enable = true; programs.starship = {