2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, makeWrapper
|
|
|
|
, coreutils
|
|
|
|
, openssh
|
|
|
|
, gnupg
|
|
|
|
, perl
|
|
|
|
, procps
|
|
|
|
, gnugrep
|
|
|
|
, gawk
|
|
|
|
, findutils
|
|
|
|
, gnused
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "keychain";
|
|
|
|
version = "2.8.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "funtoo";
|
|
|
|
repo = "keychain";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1bkjlg0a2bbdjhwp37ci1rwikvrl4s3xlbf2jq2z4azc96dr83mj";
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
2021-03-09 03:18:52 +00:00
|
|
|
buildInputs = [ perl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-12-06 16:07:01 +00:00
|
|
|
mkdir -p $out/bin
|
2020-04-24 23:36:52 +00:00
|
|
|
cp keychain $out/bin/keychain
|
2021-12-06 16:07:01 +00:00
|
|
|
installManPage keychain.1
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapProgram $out/bin/keychain \
|
2021-12-06 16:07:01 +00:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ coreutils findutils gawk gnupg gnugrep gnused openssh procps ]}" \
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Keychain management tool";
|
|
|
|
longDescription = ''
|
2021-01-15 22:18:51 +00:00
|
|
|
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.
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://www.funtoo.org/Keychain";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ sigma ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|