lychee: 0.22.0 -> 0.23.0 (#490484)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
deps@{
|
||||
cacert,
|
||||
formats,
|
||||
lib,
|
||||
lychee,
|
||||
@@ -40,7 +41,10 @@ let
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
name = "lychee-link-check";
|
||||
inherit site;
|
||||
nativeBuildInputs = [ finalAttrs.passthru.lychee ];
|
||||
nativeBuildInputs = [
|
||||
finalAttrs.passthru.lychee
|
||||
cacert
|
||||
];
|
||||
configFile = (formats.toml { }).generate "lychee.toml" finalAttrs.passthru.config;
|
||||
|
||||
# These can be overridden with overrideAttrs if needed.
|
||||
|
||||
@@ -6,9 +6,8 @@
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
installShellFiles,
|
||||
pkg-config,
|
||||
openssl,
|
||||
testers,
|
||||
cacert,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -17,13 +16,12 @@ let
|
||||
in
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "lychee";
|
||||
version = "0.22.0-unstable-2025-12-05";
|
||||
version = "0.23.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lycheeverse";
|
||||
repo = "lychee";
|
||||
# tag = "lychee-v${finalAttrs.version}"; # use again with next release
|
||||
rev = "db0f8a842f594e0a879563caf7d183266c02ca95"; # one revision after 0.22.0
|
||||
tag = "lychee-v${finalAttrs.version}";
|
||||
leaveDotGit = true;
|
||||
postFetch = ''
|
||||
GIT_DATE=$(git -C $out/.git show -s --format=%cs)
|
||||
@@ -33,17 +31,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
'("cargo:rustc-env=GIT_DATE={}", "'$GIT_DATE'")'
|
||||
rm -rf $out/.git
|
||||
'';
|
||||
hash = "sha256-l8/llYq8rwt+UQMLnsva4/2m53cwqaJXD/XvgEfxXg4=";
|
||||
hash = "sha256-Rfdys16a4N6B3NsmPsB3OpKjLGElFYvd4UtiRipy8iQ=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-03eahQ6GvOPxnvC82lfT1J/XfOg9V7gOZeOEBJx8IYY=";
|
||||
cargoHash = "sha256-5KL/PmBSU8xkOE9/w7uUBkJSOBPsj3Z4o/2VmzA/f3Q=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
nativeCheckInputs = [ cacert ];
|
||||
|
||||
postFixup = lib.optionalString canRun ''
|
||||
${lychee} --generate man > lychee.1
|
||||
|
||||
Reference in New Issue
Block a user