From 2e919d34231e53c3c32f536b3279fde70970f396 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Sun, 30 Nov 2025 22:16:17 +0800 Subject: [PATCH] zunit: workaround GitHub repo archive directory missing with forceFetchGit instead of deepClone --- pkgs/by-name/zu/zunit/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/zu/zunit/package.nix b/pkgs/by-name/zu/zunit/package.nix index 501aad737c02..7c3a51561fe7 100644 --- a/pkgs/by-name/zu/zunit/package.nix +++ b/pkgs/by-name/zu/zunit/package.nix @@ -17,8 +17,11 @@ stdenvNoCC.mkDerivation (finalAttrs: { owner = "zunit-zsh"; repo = "zunit"; rev = "v${finalAttrs.version}"; - hash = "sha256-GkBewb795piCaniZJZpGEZFhKaNs8p8swV5z34OegPY="; - deepClone = true; # Needed in order to get "tests" folder + hash = "sha256-kXgJjD7N9pUIk57g/EEXZ8ADypuVO+Vyj8ssgwOzVCg="; + # The "tests" folder is missing in GitHub-provided download archives. + # work around with `git clone`. + # https://github.com/orgs/community/discussions/180774 + forceFetchGit = true; }; strictDeps = true;