{ lib , buildGoModule , fetchFromGitHub , file , installShellFiles , asciidoctor }: buildGoModule rec { pname = "pistol"; version = "0.2.1"; src = fetchFromGitHub { owner = "doronbehar"; repo = pname; rev = "v${version}"; sha256 = "sha256-NUHk48P3kUx+e9BR9k9K/VaHnbZ6Do6RRf1S0974sO8="; }; vendorSha256 = "sha256-n98cjXsgg2w3shbZPnk3g7mBbzV5Tc3jd9ZtiRk1KUM="; doCheck = false; subPackages = [ "cmd/pistol" ]; buildInputs = [ file ]; nativeBuildInputs = [ installShellFiles asciidoctor ]; postBuild = '' asciidoctor -b manpage -d manpage README.adoc installManPage pistol.1 ''; ldflags = [ "-s" "-w" "-X main.Version=${version}" ]; meta = with lib; { description = "General purpose file previewer designed for Ranger, Lf to make scope.sh redundant"; homepage = "https://github.com/doronbehar/pistol"; license = licenses.mit; maintainers = with maintainers; [ doronbehar ]; }; }