02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
37 lines
849 B
Nix
37 lines
849 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "lychee";
|
|
version = "0.10.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lycheeverse";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-2osBY7hO0v6fnKrOCYTbO45Ja0UHMoaXZeR1QIp2fT8=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-j+Pykcg9ezLJl4wH31tiLqmAkvQd9go+6wyUmBRTgTs=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|