nixpkgs/pkgs/tools/misc/keychain/default.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

2015-03-22 22:02:42 +00:00
{ stdenv, fetchFromGitHub, makeWrapper, coreutils, openssh, gnupg
, perl, procps, gnugrep, gawk, findutils, gnused
, withProcps ? stdenv.isLinux }:
2015-03-22 22:02:42 +00:00
stdenv.mkDerivation rec {
name = "keychain-${version}";
2017-04-09 17:17:32 +01:00
version = "2.8.3";
2015-03-22 22:02:42 +00:00
src = fetchFromGitHub {
owner = "funtoo";
repo = "keychain";
2017-04-09 17:17:32 +01:00
rev = "${version}";
sha256 = "0za2fi4g7ixzj3izgwlv71b3cviz3qhz43y4bhdkglg16x5cnzcb";
};
buildInputs = [ makeWrapper perl ];
installPhase = ''
mkdir -p $out/{bin,share/man/man1}
cp keychain $out/bin/keychain
cp keychain.1 $out/share/man/man1
2013-11-28 11:52:32 +00: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" \
${if withProcps then ("--prefix PATH \":\" ${procps}/bin") else ""}
2013-11-28 11:52:32 +00:00
'';
2015-03-22 22:02:42 +00:00
meta = {
description = "Keychain management tool";
2015-03-22 22:02:42 +00:00
homepage = "http://www.funtoo.org/Keychain";
license = stdenv.lib.licenses.gpl2;
# other platforms are untested (AFAIK)
platforms =
with stdenv.lib;
platforms.linux ++ platforms.darwin;
2017-04-10 06:28:27 +01:00
maintainers = with stdenv.lib.maintainers; [ sigma ];
};
}