mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
39 lines
910 B
Nix
39 lines
910 B
Nix
{
|
|
stdenvNoCC,
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3,
|
|
openssh,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "ssh-ident";
|
|
version = "2016-04-21";
|
|
src = fetchFromGitHub {
|
|
owner = "ccontavalli";
|
|
repo = "ssh-ident";
|
|
rev = "ebf8282728211dc4448d50f7e16e546ed03c22d2";
|
|
sha256 = "1jf19lz1gwn7cyp57j8d4zs5bq13iw3kw31m8nvr8h6sib2pf815";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace ssh-ident \
|
|
--replace 'ssh-agent >' '${openssh}/bin/ssh-agent >'
|
|
'';
|
|
buildInputs = [ python3 ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
install -m 755 ssh-ident $out/bin/ssh-ident
|
|
'';
|
|
|
|
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;
|
|
mainProgram = "ssh-ident";
|
|
};
|
|
}
|