2015-03-22 23:02:42 +01:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, coreutils, openssh, gnupg
|
2013-11-28 12:52:32 +01:00
|
|
|
, procps, gnugrep, gawk, findutils, gnused }:
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2015-03-22 23:02:42 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "keychain-${version}";
|
|
|
|
version = "2.8.0";
|
2008-04-23 12:51:23 +02:00
|
|
|
|
2015-03-22 23:02:42 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "funtoo";
|
|
|
|
repo = "keychain";
|
|
|
|
rev = "1c8eaba53a7788d12d086b66ac3929810510f73a";
|
|
|
|
sha256 = "0ajas58cv8mp5wb6hn1zhsqiwfxvx69p4f91a5j2as299rxgrxlp";
|
2008-04-23 12:51:23 +02:00
|
|
|
};
|
|
|
|
|
2015-03-22 23:02:42 +01:00
|
|
|
phases = [ "unpackPhase" "patchPhase" "buildPhase" ];
|
2008-04-23 12:51:23 +02:00
|
|
|
|
2013-11-28 12:52:32 +01:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2015-03-22 23:02:42 +01:00
|
|
|
patchPhase = "sed -i -e 's,version=.*,version=\"${version}\",g' keychain.sh";
|
|
|
|
|
2013-11-28 12:52:32 +01:00
|
|
|
buildPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2015-03-22 23:02:42 +01:00
|
|
|
cp keychain.sh $out/bin/keychain
|
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" \
|
|
|
|
--prefix PATH ":" "${procps}/bin"
|
|
|
|
'';
|
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";
|
2015-03-22 23:02:42 +01:00
|
|
|
homepage = "http://www.funtoo.org/Keychain";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2008-04-23 12:51:23 +02:00
|
|
|
};
|
|
|
|
}
|