lychee: 0.20.1 -> 0.21.0 (#454979)
This commit is contained in:
@@ -1,30 +1,48 @@
|
||||
{
|
||||
callPackage,
|
||||
lib,
|
||||
rustPlatform,
|
||||
stdenv,
|
||||
buildPackages,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
installShellFiles,
|
||||
pkg-config,
|
||||
git,
|
||||
openssl,
|
||||
testers,
|
||||
}:
|
||||
|
||||
let
|
||||
canRun = stdenv.hostPlatform.emulatorAvailable buildPackages;
|
||||
lychee = "${stdenv.hostPlatform.emulator buildPackages} $out/bin/lychee${stdenv.hostPlatform.extensions.executable}";
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "lychee";
|
||||
version = "0.20.1";
|
||||
version = "0.21.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lycheeverse";
|
||||
repo = "lychee";
|
||||
rev = "lychee-v${version}";
|
||||
hash = "sha256-yHIj45RfQch4y+V4Ht7cDMcg5MECejxsbjuE345I/to=";
|
||||
hash = "sha256-zV3EVFFYU9fR5gXPTyYudE8rgAW3eDjOF3sTJMuXzh4=";
|
||||
leaveDotGit = true; # used by lychee to determine latest commit date at build time
|
||||
};
|
||||
|
||||
cargoHash = "sha256-d3umjtXPBJbPRtNCuktYhJUPgKFmB8UEeewWMekDZRE=";
|
||||
cargoHash = "sha256-1sqFjNil6KktpqrsXXgt3xtOz7eFQc2skkFHqmTMDg4=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
git
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
postFixup = lib.optionalString canRun ''
|
||||
${lychee} --generate man > lychee.1
|
||||
installManPage lychee.1
|
||||
'';
|
||||
|
||||
cargoTestFlags = [
|
||||
# don't run doctests since they tend to use the network
|
||||
"--lib"
|
||||
@@ -32,6 +50,8 @@ rustPlatform.buildRustPackage rec {
|
||||
"--tests"
|
||||
];
|
||||
|
||||
checkType = "debug"; # compilation fails otherwise
|
||||
|
||||
checkFlags = [
|
||||
# Network errors for all of these tests
|
||||
# "error reading DNS system conf: No such file or directory (os error 2)" } }
|
||||
@@ -44,6 +64,7 @@ rustPlatform.buildRustPackage rec {
|
||||
"--skip=cli::test_local_file"
|
||||
"--skip=client::tests"
|
||||
"--skip=collector::tests"
|
||||
"--skip=commands::generate::tests::test_examples_work"
|
||||
"--skip=src/lib.rs"
|
||||
# Color error for those tests as we are not in a tty
|
||||
"--skip=formatters::response::color::tests::test_format_response_with_error_status"
|
||||
|
||||
Reference in New Issue
Block a user