From 3238052222628d79c25479d6e0159a0881d109cf Mon Sep 17 00:00:00 2001 From: Thomas Zahner Date: Sat, 14 Feb 2026 20:33:59 +0100 Subject: [PATCH] lychee: 0.22.0 -> 0.23.0 Thank you @Scrumplex for suggesting the fix for lycheeLinkCheck Co-authored-by: Philip Taron --- pkgs/build-support/testers/lychee.nix | 6 +++++- pkgs/by-name/ly/lychee/package.nix | 15 ++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/build-support/testers/lychee.nix b/pkgs/build-support/testers/lychee.nix index ec0aa4c7f305..1cca3ead76f0 100644 --- a/pkgs/build-support/testers/lychee.nix +++ b/pkgs/build-support/testers/lychee.nix @@ -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. diff --git a/pkgs/by-name/ly/lychee/package.nix b/pkgs/by-name/ly/lychee/package.nix index b331682bf512..a03a270d632c 100644 --- a/pkgs/by-name/ly/lychee/package.nix +++ b/pkgs/by-name/ly/lychee/package.nix @@ -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