a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
28 lines
860 B
Nix
28 lines
860 B
Nix
{ stdenv, lib, fetchFromGitHub, python3, makeWrapper, openssh }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "ssh-ident";
|
|
version = "2016-04-21";
|
|
src = fetchFromGitHub {
|
|
owner = "ccontavalli";
|
|
repo = "ssh-ident";
|
|
rev = "ebf8282728211dc4448d50f7e16e546ed03c22d2";
|
|
sha256 = "1jf19lz1gwn7cyp57j8d4zs5bq13iw3kw31m8nvr8h6sib2pf815";
|
|
};
|
|
|
|
buildInputs = [ python3 makeWrapper ];
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
install -m 755 ssh-ident $out/bin/ssh-ident
|
|
wrapProgram $out/bin/ssh-ident \
|
|
--prefix PATH : ${lib.makeBinPath [ openssh ]}
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/ccontavalli/ssh-ident";
|
|
description = "Start and use ssh-agent and load identities as necessary";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ telotortium ];
|
|
platforms = with lib.platforms; unix;
|
|
};
|
|
}
|