diff --git a/pkgs/by-name/ya/yazi-unwrapped/package.nix b/pkgs/by-name/ya/yazi-unwrapped/package.nix index 59f3266373ed..0073eb002a96 100644 --- a/pkgs/by-name/ya/yazi-unwrapped/package.nix +++ b/pkgs/by-name/ya/yazi-unwrapped/package.nix @@ -8,17 +8,17 @@ }: rustPlatform.buildRustPackage (finalAttrs: { pname = "yazi"; - version = "26.1.22"; + version = "26.5.6"; srcs = builtins.attrValues finalAttrs.passthru.srcs; sourceRoot = finalAttrs.passthru.srcs.code_src.name; - cargoHash = "sha256-VcoIjPZqLimo44atXh7pnCtF+QaZA7uHtKEE6FgTL2k="; + cargoHash = "sha256-gc0uEMNJ+eCIymXK10+Swi11xuyP5cj6MbLLB/ZDgXw="; env.YAZI_GEN_COMPLETIONS = true; env.VERGEN_GIT_SHA = "Nixpkgs"; - env.VERGEN_BUILD_DATE = "2026-01-22"; + env.VERGEN_BUILD_DATE = "2026-05-05"; nativeBuildInputs = [ installShellFiles ]; buildInputs = [ rust-jemalloc-sys ]; @@ -36,18 +36,13 @@ rustPlatform.buildRustPackage (finalAttrs: { install -Dm444 assets/logo.png $out/share/pixmaps/yazi.png ''; - postPatch = '' - substituteInPlace yazi-shared/Cargo.toml \ - --replace-fail 'rust-version = "1.92.0"' 'rust-version = "1.91"' - ''; - passthru.updateScript.command = [ ./update.sh ]; passthru.srcs = { code_src = fetchFromGitHub { owner = "sxyazi"; repo = "yazi"; tag = "v${finalAttrs.version}"; - hash = "sha256-BZktPXn+8vyFyHapvW+9nepFsWRW/XBtdBcnLKrCNCw="; + hash = "sha256-sdaqZwLb+fBTg5Pd6WWfOWKCavsXWSSZrBEXuYuc8iM="; }; man_src = fetchFromGitHub { diff --git a/pkgs/by-name/ya/yazi-unwrapped/update.sh b/pkgs/by-name/ya/yazi-unwrapped/update.sh index 6b32e2d8c347..3aaf5dd3a182 100755 --- a/pkgs/by-name/ya/yazi-unwrapped/update.sh +++ b/pkgs/by-name/ya/yazi-unwrapped/update.sh @@ -41,12 +41,12 @@ echo "Updating cargoHash" sed -i -E 's/cargoHash = ".*?"/cargoHash = ""/' package.nix # Build and get new hash -cargoHash=$( (nix-build "$NIXPKGS_DIR" -A yazi-unwrapped 2>&1 || true) | awk '/got/{print $2}') +cargoHash=$( (nix-build "$NIXPKGS_DIR" -A yazi-unwrapped 2>&1 || true) | awk '/got:/{print $2}') if [ "$cargoHash" == "" ]; then echo "Failed to get cargoHash, please update it manually" exit 0 fi -sed -i -E 's/cargoHash = ".*?"/cargoHash = "'"$cargoHash"'"/' package.nix +sed -i -E 's#cargoHash = ".*?"#cargoHash = "'"$cargoHash"'"#' package.nix popd