diff --git a/flake.lock b/flake.lock index cd3b10d..907b361 100644 --- a/flake.lock +++ b/flake.lock @@ -154,6 +154,23 @@ "type": "github" } }, + "ranger-sixel": { + "flake": false, + "locked": { + "lastModified": 1659456427, + "narHash": "sha256-tRK6Mga/R1e1LB1E4/NXMFFuRAaTP228Sr/ts+eYR/0=", + "owner": "remi6397", + "repo": "ranger", + "rev": "ea9ae8870e63fe52d2003ff49185dbc7cb2bcb42", + "type": "github" + }, + "original": { + "owner": "remi6397", + "ref": "feature/sixel", + "repo": "ranger", + "type": "github" + } + }, "root": { "inputs": { "alacritty-sixel": "alacritty-sixel", @@ -161,7 +178,8 @@ "home-manager": "home-manager", "nixpkgs": "nixpkgs_2", "nixpkgs-unstable": "nixpkgs-unstable", - "nur": "nur" + "nur": "nur", + "ranger-sixel": "ranger-sixel" } }, "rust-analyzer-src": { diff --git a/flake.nix b/flake.nix index c58a5bd..1617c55 100644 --- a/flake.nix +++ b/flake.nix @@ -10,10 +10,13 @@ alacritty-sixel.url = "github:microo8/alacritty-sixel"; alacritty-sixel.flake = false; + ranger-sixel.url = "github:remi6397/ranger/feature/sixel"; + ranger-sixel.flake = false; + # my stuff dhist.url = "github:lelgenio/dhist"; }; - outputs = { nixpkgs, nixpkgs-unstable, home-manager, alacritty-sixel, nur, dhist, ... }: + outputs = { nixpkgs, nixpkgs-unstable, home-manager, alacritty-sixel, ranger-sixel, nur, dhist, ... }: let system = "x86_64-linux"; pkgs = import nixpkgs { @@ -49,6 +52,13 @@ outputHash = "sha256-aNatd4LC4lv0bDpVfUONdtEn9OPahVBZ9ch14pWWCnM="; }); })); + ranger = (old-pkgs.ranger.overridePythonAttrs (old-ranger: rec { + src = ranger-sixel; + checkInputs = []; + propagatedBuildInputs = with pkgs.python3Packages; + old-ranger.propagatedBuildInputs ++ + [ astroid pylint pytest ]; + })); }) ]; })