passh: add hooks to script

This commit is contained in:
Guy Chronister
2025-06-03 16:04:45 +00:00
parent 35891e5f65
commit 577800ddf8
+7 -6
View File
@@ -16,16 +16,17 @@ stdenv.mkDerivation {
};
installPhase = ''
mkdir -p $out/bin
cp passh $out/bin
runHook preInstall
install -Dm755 passh $out/bin/passh
runHook postInstall
'';
meta = with lib; {
meta = {
homepage = "https://github.com/clarkwang/passh";
description = "Sshpass alternative for non-interactive ssh auth";
license = licenses.gpl3;
maintainers = [ maintainers.lovesegfault ];
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.lovesegfault ];
mainProgram = "passh";
platforms = platforms.unix;
platforms = lib.platforms.unix;
};
}