2021-03-19 19:15:08 +00:00
|
|
|
{ lib
|
2022-07-29 18:42:11 +00:00
|
|
|
, stdenv
|
2021-03-19 19:15:08 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2022-07-29 18:42:11 +00:00
|
|
|
, Security
|
2021-03-19 19:15:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "lychee";
|
2023-02-25 18:26:19 +00:00
|
|
|
version = "0.11.1";
|
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}";
|
2023-02-25 18:26:19 +00:00
|
|
|
sha256 = "sha256-fOD28O6ycRIniQz841PGJzEFGtYord/y44mdqyAmNDg=";
|
2021-03-19 19:15:08 +00:00
|
|
|
};
|
|
|
|
|
2023-02-25 18:26:19 +00:00
|
|
|
cargoHash = "sha256-r089P2VOeIIW0FjkO4oqVXbrxDND4loagVfVMm5EtaE=";
|
2021-03-19 19:15:08 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2022-07-29 18:42:11 +00:00
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
2021-03-19 19:15:08 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|