20 stdenv.mkDerivation rec {
24 src = fetchFromGitHub {
25 owner = "NikitaIvanovV";
28 hash = "sha256-3BQi4m44hBmPkJBFNCg6d9YKRbDZwLxdzBb/NDWTQP4=";
31 nativeBuildInputs = [ makeWrapper ];
38 makeFlags = [ "PREFIX=$(out)" ];
41 wrapProgram $out/bin/ctpv \
42 --prefix PATH ":" "${lib.makeBinPath [
43 atool # for archive files
45 chafa # for image files on Wayland
46 delta # for diff files
50 glow # for markdown files
53 ueberzug # for image files on X11
58 description = "File previewer for a terminal";
59 homepage = "https://github.com/NikitaIvanovV/ctpv";
60 license = licenses.mit;
61 platforms = platforms.linux;
62 maintainers = [ maintainers.wesleyjrz ];