fzf-preview: init at 0-unstable-2025-06-26 (#420244)

authored by

Fernando Rodrigues and committed by
GitHub
1423943d d07b3731

+90
+90
pkgs/by-name/fz/fzf-preview/package.nix
··· 1 + { 2 + atool, 3 + bat, 4 + catdoc, 5 + chafa, 6 + exiftool, 7 + eza, 8 + fetchFromGitHub, 9 + ffmpegthumbnailer, 10 + file, 11 + glow, 12 + gnumeric, 13 + jq, 14 + lib, 15 + libcdio, 16 + makeWrapper, 17 + mediainfo, 18 + odt2txt, 19 + openssl, 20 + p7zip, 21 + poppler-utils, 22 + stdenv, 23 + w3m, 24 + }: 25 + 26 + stdenv.mkDerivation { 27 + pname = "fzf-preview"; 28 + version = "0-unstable-2025-06-26"; 29 + 30 + src = fetchFromGitHub { 31 + owner = "niksingh710"; 32 + repo = "fzf-preview"; 33 + rev = "5f6e936d1c3943192f9bdade71cff8879bdab3a6"; 34 + hash = "sha256-vDgYv9PjQQYcMKG97ryncd30JPplnEqAKBp5hAE0E+o="; 35 + }; 36 + 37 + nativeBuildInputs = [ makeWrapper ]; 38 + 39 + installPhase = '' 40 + runHook preInstall 41 + 42 + install -Dm755 -t $out/bin/ ./fzf-preview 43 + 44 + wrapProgram $out/bin/fzf-preview \ 45 + --prefix PATH ":" ${ 46 + lib.makeBinPath [ 47 + atool 48 + bat 49 + catdoc 50 + chafa 51 + exiftool 52 + eza 53 + ffmpegthumbnailer 54 + file 55 + glow 56 + gnumeric 57 + jq 58 + libcdio 59 + mediainfo 60 + odt2txt 61 + openssl 62 + p7zip 63 + poppler-utils 64 + w3m 65 + ] 66 + } 67 + 68 + runHook postInstall 69 + ''; 70 + 71 + meta = { 72 + description = "Simple fzf preview script for previewing any filetype in fzf's preview window"; 73 + 74 + longDescription = '' 75 + fzf-preview is a lightweight Bash script designed to enhance the user experience 76 + with fzf (fuzzy finder) by providing instant previews of files directly in the 77 + fzf preview pane. It supports a wide variety of filetypes—including images and 78 + text—and delivers relevant file information in the terminal. The script aims to 79 + be simple, fast, and highly compatible, making it a useful tool for anyone 80 + leveraging fzf for file navigation or search. 81 + ''; 82 + homepage = "https://github.com/niksingh710/fzf-preview"; 83 + license = lib.licenses.gpl3Only; 84 + maintainers = with lib.maintainers; [ 85 + niksingh710 86 + ]; 87 + mainProgram = "fzf-preview"; 88 + platforms = lib.platforms.unix; 89 + }; 90 + }