depot/third_party/nixpkgs/pkgs/tools/networking/lychee/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

37 lines
849 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "lychee";
version = "0.10.3";
src = fetchFromGitHub {
owner = "lycheeverse";
repo = pname;
rev = "v${version}";
sha256 = "sha256-gnHeG1LaW10HmVF/+0OmOgaMz3X4ub4UpBiFQaGIah0=";
};
cargoSha256 = "sha256-+hTXkPf4r+PF+k0+miY634sQ9RONHmtyF2hVowl/zuk=";
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 ];
};
}