Merge pull request #274665 from lsf1re/crawley

crawley: init at 1.7.1
This commit is contained in:
Janik 2023-12-16 16:48:15 +01:00 committed by GitHub
commit 231716639e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

View File

@ -10730,6 +10730,16 @@
githubId = 8555953;
name = "Laure Tavard";
};
ltstf1re = {
email = "ltstf1re@disroot.org";
github = "lsf1re";
githubId = 153414530;
matrix = "@ltstf1re:converser.eu";
name = "Little Starfire";
keys = [{
fingerprint = "FE6C C3C9 2ACF 4367 2B56 5B22 8603 2ACC 051A 873D";
}];
};
lu15w1r7h = {
email = "lwirth2000@gmail.com";
github = "LU15W1R7H";

View File

@ -0,0 +1,37 @@
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "crawley";
version = "1.7.1";
src = fetchFromGitHub {
owner = "s0rg";
repo = "crawley";
rev = "v${version}";
hash = "sha256-IRhi6z2TQZOOw8EZkJ3/VEOBzAlg0DQjq9wSt+/c3ck=";
};
nativeBuildInputs = [ installShellFiles ];
vendorHash = "sha256-0BUbALCBR9CGwkqz1cUnzF3xjQkkzfdS7JDDTXkGmN4=";
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 = "The unix-way web crawler";
homepage = "https://github.com/s0rg/crawley";
license = licenses.mit;
maintainers = with maintainers; [ ltstf1re ];
mainProgram = "crawley";
};
}