2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, stdenv }:
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "passh";
|
|
|
|
version = "2020-03-18";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "clarkwang";
|
2023-10-09 19:29:22 +00:00
|
|
|
repo = finalAttrs.pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "7112e667fc9e65f41c384f89ff6938d23e86826c";
|
|
|
|
sha256 = "1g0rx94vqg36kp46f8v4x6jcmvdk85ds6bkrpayq772hbdm1b5z5";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2023-10-09 19:29:22 +00:00
|
|
|
cp ${finalAttrs.pname} $out/bin
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/clarkwang/passh";
|
|
|
|
description = "An sshpass alternative for non-interactive ssh auth";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.lovesegfault ];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = finalAttrs.pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|