1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

Merge pull request #9220 from badi/darwin-keychain

keychain: support Darwin as a platform
This commit is contained in:
Arseniy Seroka 2015-08-13 11:11:04 +03:00
commit 24cac7ac16

View file

@ -1,5 +1,6 @@
{ stdenv, fetchFromGitHub, makeWrapper, coreutils, openssh, gnupg
, perl, procps, gnugrep, gawk, findutils, gnused }:
, perl, procps, gnugrep, gawk, findutils, gnused
, withProcps ? stdenv.isLinux }:
stdenv.mkDerivation rec {
name = "keychain-${version}";
@ -26,12 +27,16 @@ stdenv.mkDerivation rec {
--prefix PATH ":" "${gnused}/bin" \
--prefix PATH ":" "${findutils}/bin" \
--prefix PATH ":" "${gawk}/bin" \
--prefix PATH ":" "${procps}/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;
};
}