Files
nixpkgs/pkgs/by-name/ke/keychain/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

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.9.6";
src = fetchFromGitHub {
owner = "funtoo";
repo = "keychain";
rev = version;
sha256 = "sha256-R70W8/tE4suGgiSqkJ1RJ0fJ3C+exdoVesXtvxPORVo=";
};
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 = "Manage SSH and GPG keys in a convenient and secure manner";
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";
};
}