2021-02-05 17:12:51 +00:00
|
|
|
{ stdenvNoCC, lib, fetchFromGitHub, python3, openssh}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ssh-ident";
|
|
|
|
version = "2016-04-21";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ccontavalli";
|
|
|
|
repo = "ssh-ident";
|
|
|
|
rev = "ebf8282728211dc4448d50f7e16e546ed03c22d2";
|
|
|
|
sha256 = "1jf19lz1gwn7cyp57j8d4zs5bq13iw3kw31m8nvr8h6sib2pf815";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ssh-ident \
|
|
|
|
--replace 'ssh-agent >' '${openssh}/bin/ssh-agent >'
|
|
|
|
'';
|
|
|
|
buildInputs = [ python3 ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -m 755 ssh-ident $out/bin/ssh-ident
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/ccontavalli/ssh-ident";
|
|
|
|
description = "Start and use ssh-agent and load identities as necessary";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ telotortium ];
|
|
|
|
platforms = with platforms; unix;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "ssh-ident";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|