mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 03:25:36 +00:00

After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
46 lines
1.5 KiB
Nix
46 lines
1.5 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
stdenvNoCC,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "ssh-agents";
|
|
version = "1.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kalbasit";
|
|
repo = "ssh-agents";
|
|
rev = "v${version}";
|
|
sha256 = "1l09zy87033v7hd17lhkxikwikqz5nj9x6c2w80rqpad4lp9ihwz";
|
|
};
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
description = "ssh-agents capable of spawning and maintaining multiple ssh-agents across terminals";
|
|
longDescription = ''
|
|
The SSH agent is usually spawned by running eval $(ssh-agent), however this
|
|
spawns a new SSH agent at every invocation. This project provides an
|
|
ssh-agent wrapper called ssh-agents that is capable of spawning an SSH
|
|
agent and caching the environment variables for later invocation.
|
|
|
|
Features
|
|
- One SSH agent across all terminals
|
|
- Add all un-encrypted SSH keys to the agent upon spawning. Please note
|
|
that encrypted SSH keys can only be added via ssh-add after having
|
|
started the agent.
|
|
- Ability to have different keys in different agents for security purposes.
|
|
- Multiple SSH agents
|
|
- To use multi-SSH agents, start ssh agent with the --name flag. The
|
|
given name is expected to be a folder under ~/.ssh/name containing the
|
|
keys to include in the agent.
|
|
'';
|
|
homepage = "https://github.com/kalbasit/ssh-agents";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "ssh-agents";
|
|
};
|
|
}
|