nixpkgs/pkgs/tools/networking/lychee/default.nix

36 lines
811 B
Nix
Raw Normal View History

2021-03-19 22:15:08 +03:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
}:
rustPlatform.buildRustPackage rec {
pname = "lychee";
2021-11-18 17:57:58 +03:00
version = "0.8.1";
2021-03-19 22:15:08 +03:00
src = fetchFromGitHub {
owner = "lycheeverse";
repo = pname;
2021-11-18 17:57:58 +03:00
rev = "v${version}";
sha256 = "sha256-TjjSysG4UCXVi5ytWaJVL31TFLHC3Ro5OEB56pzbn7s=";
2021-03-19 22:15:08 +03:00
};
2021-11-18 17:57:58 +03:00
cargoSha256 = "sha256-apRXxd7RBnNjhZb0xAUr5hSTafyMbg0k1wgHT93Z66g=";
2021-03-19 22:15:08 +03: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;
};
}