{ lib , buildGoModule , fetchFromGitHub , installShellFiles }: buildGoModule rec { pname = "crawley"; version = "1.7.10"; src = fetchFromGitHub { owner = "s0rg"; repo = "crawley"; rev = "v${version}"; hash = "sha256-vc3HHkX0BFVSJi1Ll9T8IgYh5P6rzi4FowE7Jdy/tO8="; }; nativeBuildInputs = [ installShellFiles ]; vendorHash = "sha256-jj8FNZs/bkFQxveOkqmGVO3MNPPv5O9ebodoi7hhzIs="; ldflags = [ "-w" "-s" ]; postInstall = '' installShellCompletion --cmd crawley \ --bash <(echo "complete -C $out/bin/crawley crawley") \ --zsh <(echo "complete -o nospace -C $out/bin/crawley crawley") ''; meta = with lib; { description = "Unix-way web crawler"; homepage = "https://github.com/s0rg/crawley"; license = licenses.mit; maintainers = with maintainers; [ ltstf1re ]; mainProgram = "crawley"; }; }