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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
849 B
Nix
Raw Normal View History

2021-03-19 20:15:08 +01:00
{ lib
2022-07-29 20:42:11 +02:00
, stdenv
2021-03-19 20:15:08 +01:00
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
2022-07-29 20:42:11 +02:00
, Security
2021-03-19 20:15:08 +01:00
}:
rustPlatform.buildRustPackage rec {
pname = "lychee";
2022-07-29 01:03:08 +02:00
version = "0.10.1";
2021-03-19 20:15:08 +01:00
src = fetchFromGitHub {
owner = "lycheeverse";
repo = pname;
2021-11-18 15:57:58 +01:00
rev = "v${version}";
2022-07-29 01:03:08 +02:00
sha256 = "sha256-2osBY7hO0v6fnKrOCYTbO45Ja0UHMoaXZeR1QIp2fT8=";
2021-03-19 20:15:08 +01:00
};
2022-07-29 01:03:08 +02:00
cargoSha256 = "sha256-j+Pykcg9ezLJl4wH31tiLqmAkvQd9go+6wyUmBRTgTs=";
2021-03-19 20:15:08 +01:00
nativeBuildInputs = [ pkg-config ];
2022-07-29 20:42:11 +02:00
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security ];
2021-03-19 20:15:08 +01: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 ];
};
}