2015-03-22 23:02:42 +01:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, coreutils, openssh, gnupg
|
2015-08-12 16:29:30 +02:00
|
|
|
, perl, procps, gnugrep, gawk, findutils, gnused
|
|
|
|
, withProcps ? stdenv.isLinux }:
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2015-03-22 23:02:42 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "keychain-${version}";
|
2017-04-09 18:17:32 +02:00
|
|
|
version = "2.8.3";
|
2008-04-23 12:51:23 +02:00
|
|
|
|
2015-03-22 23:02:42 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "funtoo";
|
|
|
|
repo = "keychain";
|
2017-04-09 18:17:32 +02:00
|
|
|
rev = "${version}";
|
|
|
|
sha256 = "0za2fi4g7ixzj3izgwlv71b3cviz3qhz43y4bhdkglg16x5cnzcb";
|
2008-04-23 12:51:23 +02:00
|
|
|
};
|
|
|
|
|
2015-05-14 00:03:59 +02:00
|
|
|
buildInputs = [ makeWrapper perl ];
|
2008-04-23 12:51:23 +02:00
|
|
|
|
2015-05-14 00:03:59 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,share/man/man1}
|
|
|
|
cp keychain $out/bin/keychain
|
|
|
|
cp keychain.1 $out/share/man/man1
|
2013-11-28 12:52:32 +01:00
|
|
|
wrapProgram $out/bin/keychain \
|
|
|
|
--prefix PATH ":" "${coreutils}/bin" \
|
|
|
|
--prefix PATH ":" "${openssh}/bin" \
|
|
|
|
--prefix PATH ":" "${gnupg}/bin" \
|
|
|
|
--prefix PATH ":" "${gnugrep}/bin" \
|
|
|
|
--prefix PATH ":" "${gnused}/bin" \
|
|
|
|
--prefix PATH ":" "${findutils}/bin" \
|
|
|
|
--prefix PATH ":" "${gawk}/bin" \
|
2015-08-12 16:29:30 +02:00
|
|
|
${if withProcps then ("--prefix PATH \":\" ${procps}/bin") else ""}
|
2013-11-28 12:52:32 +01:00
|
|
|
'';
|
2008-04-23 12:51:23 +02:00
|
|
|
|
2015-03-22 23:02:42 +01:00
|
|
|
meta = {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Keychain management tool";
|
2018-01-05 20:42:46 +01:00
|
|
|
homepage = https://www.funtoo.org/Keychain;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2015-08-12 16:29:30 +02:00
|
|
|
# other platforms are untested (AFAIK)
|
|
|
|
platforms =
|
|
|
|
with stdenv.lib;
|
|
|
|
platforms.linux ++ platforms.darwin;
|
2017-04-10 07:28:27 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ sigma ];
|
2008-04-23 12:51:23 +02:00
|
|
|
};
|
|
|
|
}
|