zoxide: add nushell-integration test

This commit is contained in:
Marc Jakobi
2026-03-16 12:54:53 +01:00
committed by Marc Jakobi
parent 19edc32a14
commit 55dec2a4a7
+26
View File
@@ -3,10 +3,14 @@
stdenv,
fetchFromGitHub,
rustPlatform,
runCommandLocal,
withFzf ? true,
fzf,
installShellFiles,
libiconv,
testers,
nushell,
zoxide,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -31,6 +35,28 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-4BXZ5NnwY2izzJFkPkECKvpuyFWfZ2CguybDDk0GDU0=";
passthru = {
tests = {
version = testers.testVersion {
package = zoxide;
};
nushell-integration =
runCommandLocal "test-${zoxide.name}-nushell-integration"
{
nativeBuildInputs = [
nushell
zoxide
];
meta.platforms = nushell.meta.platforms;
}
''
mkdir $out
nu -c "zoxide init nushell | save zoxide.nu"
nu -c "source zoxide.nu"
'';
};
};
postInstall = ''
installManPage man/man*/*
installShellCompletion --cmd zoxide \