12 stdenvNoCC.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-GkBewb795piCaniZJZpGEZFhKaNs8p8swV5z34OegPY=";
21 deepClone = true; # Needed in order to get "tests" folder
26 doInstallCheck = true;
32 nativeCheckInputs = [ revolver ];
39 for i in $(find src/ -type f -print); do
40 substituteInPlace $i \
41 --replace-warn " revolver " " ${lib.getExe revolver} "
56 HOME="$TEMPDIR" zsh zunit
64 install -Dm755 zunit $out/bin/zunit
70 installShellCompletion --cmd zunit --zsh zunit.zsh-completion
73 installCheckPhase = ''
74 runHook preInstallCheck
76 PATH=$PATH:$out/bin zunit --help
78 runHook postInstallCheck
82 tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
83 updateScript = nix-update-script { };
87 description = "Powerful testing framework for ZSH projects";
88 homepage = "https://zunit.xyz/";
89 downloadPage = "https://github.com/zunit-zsh/zunit/releases";
90 changelog = "https://github.com/zunit-zsh/zunit/releases/tag/${finalAttrs.src.rev}";
91 license = lib.licenses.mit;
92 mainProgram = "zunit";
93 inherit (zsh.meta) platforms;
94 maintainers = with lib.maintainers; [ d-brasher ];