2021-03-19 19:15:08 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "lychee";
|
2022-01-10 06:01:24 +00:00
|
|
|
version = "0.8.2";
|
2021-03-19 19:15:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lycheeverse";
|
|
|
|
repo = pname;
|
2021-11-18 14:57:58 +00:00
|
|
|
rev = "v${version}";
|
2022-01-10 06:01:24 +00:00
|
|
|
sha256 = "sha256-zgIFJLdYHSDsO34KFK51g4nVlSkc9/TFdXx2yPJ7kRQ=";
|
2021-03-19 19:15:08 +00:00
|
|
|
};
|
|
|
|
|
2022-01-10 06:01:24 +00:00
|
|
|
cargoSha256 = "sha256-r4a+JkaXVYsynBiWUHaleATXvfxyhRHfR/qcooD0FmI=";
|
2021-03-19 19:15:08 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
# Disabled because they currently fail
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A fast, async, resource-friendly link checker written in Rust.";
|
|
|
|
homepage = "https://github.com/lycheeverse/lychee";
|
|
|
|
license = with licenses; [ asl20 mit ];
|
|
|
|
maintainers = with maintainers; [ tuxinaut ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|