use ranger with sixel support

This commit is contained in:
Leonardo Eugênio 2022-08-06 20:36:14 -03:00
parent bb798fbfdf
commit 82b4213975
2 changed files with 30 additions and 2 deletions

View file

@ -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": {

View file

@ -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 ];
}));
})
];
})