mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-05 04:23:47 +00:00
4f0dadbf38
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
75 lines
1.8 KiB
Nix
75 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
makeWrapper,
|
|
coreutils,
|
|
openssh,
|
|
gnupg,
|
|
perl,
|
|
procps,
|
|
gnugrep,
|
|
gawk,
|
|
findutils,
|
|
gnused,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "keychain";
|
|
version = "2.8.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "funtoo";
|
|
repo = "keychain";
|
|
rev = version;
|
|
sha256 = "1bkjlg0a2bbdjhwp37ci1rwikvrl4s3xlbf2jq2z4azc96dr83mj";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
makeWrapper
|
|
];
|
|
buildInputs = [ perl ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp keychain $out/bin/keychain
|
|
installManPage keychain.1
|
|
wrapProgram $out/bin/keychain \
|
|
--prefix PATH ":" "${
|
|
lib.makeBinPath [
|
|
coreutils
|
|
findutils
|
|
gawk
|
|
gnupg
|
|
gnugrep
|
|
gnused
|
|
openssh
|
|
procps
|
|
]
|
|
}" \
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Keychain management tool";
|
|
longDescription = ''
|
|
Keychain helps you to manage SSH and GPG keys in a convenient and secure
|
|
manner. It acts as a frontend to ssh-agent and ssh-add, but allows you
|
|
to easily have one long running ssh-agent process per system, rather
|
|
than the norm of one ssh-agent per login session.
|
|
|
|
This dramatically reduces the number of times you need to enter your
|
|
passphrase. With keychain, you only need to enter a passphrase once
|
|
every time your local machine is rebooted. Keychain also makes it easy
|
|
for remote cron jobs to securely "hook in" to a long-running ssh-agent
|
|
process, allowing your scripts to take advantage of key-based logins.
|
|
'';
|
|
homepage = "https://www.funtoo.org/Keychain";
|
|
license = licenses.gpl2Only;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ sigma ];
|
|
mainProgram = "keychain";
|
|
};
|
|
}
|