nixpkgs/pkgs/tools/misc/keychain/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

43 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, makeWrapper, coreutils, openssh, gnupg
, perl, procps, gnugrep, gawk, findutils, gnused
, withProcps ? stdenv.isLinux }:
stdenv.mkDerivation rec {
name = "keychain-${version}";
version = "2.8.3";
src = fetchFromGitHub {
owner = "funtoo";
repo = "keychain";
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
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 ""}
'';
meta = {
description = "Keychain management tool";
homepage = http://www.funtoo.org/Keychain;
license = stdenv.lib.licenses.gpl2;
# other platforms are untested (AFAIK)
platforms =
with stdenv.lib;
platforms.linux ++ platforms.darwin;
maintainers = with stdenv.lib.maintainers; [ sigma ];
};
}