2020-07-11 08:23:39 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, python3, makeWrapper, openssh }:
|
2016-06-19 20:13:05 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ssh-ident";
|
2016-06-19 20:13:05 +01:00
|
|
|
version = "2016-04-21";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ccontavalli";
|
|
|
|
repo = "ssh-ident";
|
|
|
|
rev = "ebf8282728211dc4448d50f7e16e546ed03c22d2";
|
|
|
|
sha256 = "1jf19lz1gwn7cyp57j8d4zs5bq13iw3kw31m8nvr8h6sib2pf815";
|
|
|
|
};
|
|
|
|
|
2020-07-11 08:23:39 +01:00
|
|
|
buildInputs = [ python3 makeWrapper ];
|
2016-06-19 20:13:05 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -m 755 ssh-ident $out/bin/ssh-ident
|
|
|
|
wrapProgram $out/bin/ssh-ident \
|
2020-07-11 08:23:39 +01:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ openssh ]}
|
2016-06-19 20:13:05 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ccontavalli/ssh-ident";
|
2016-06-19 20:13:05 +01:00
|
|
|
description = "Start and use ssh-agent and load identities as necessary";
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ telotortium ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2016-06-19 20:13:05 +01:00
|
|
|
};
|
|
|
|
}
|