keychain: support Darwin as a platform

This change provides support for Darwin as a platform by making the
`procps` parameter optional. If the platform is linux, then
`procps`/bin is added to the wrapped keychain's PATH, else not.

+7 -2
+7 -2
pkgs/tools/misc/keychain/default.nix
··· 1 1 { stdenv, fetchFromGitHub, makeWrapper, coreutils, openssh, gnupg 2 - , perl, procps, gnugrep, gawk, findutils, gnused }: 2 + , perl, procps, gnugrep, gawk, findutils, gnused 3 + , withProcps ? stdenv.isLinux }: 3 4 4 5 stdenv.mkDerivation rec { 5 6 name = "keychain-${version}"; ··· 26 27 --prefix PATH ":" "${gnused}/bin" \ 27 28 --prefix PATH ":" "${findutils}/bin" \ 28 29 --prefix PATH ":" "${gawk}/bin" \ 29 - --prefix PATH ":" "${procps}/bin" 30 + ${if withProcps then ("--prefix PATH \":\" ${procps}/bin") else ""} 30 31 ''; 31 32 32 33 meta = { 33 34 description = "Keychain management tool"; 34 35 homepage = "http://www.funtoo.org/Keychain"; 35 36 license = stdenv.lib.licenses.gpl2; 37 + # other platforms are untested (AFAIK) 38 + platforms = 39 + with stdenv.lib; 40 + platforms.linux ++ platforms.darwin; 36 41 }; 37 42 }