pgcenter: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:57:00 -05:00
parent 0c25c3fd13
commit 4bf3a0de2e
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "pgcenter";
@ -13,6 +13,8 @@ buildGoModule rec {
modSha256 = "0kassq52v07zmffs6l066g0d3kfv6wmrh9g5cgk79bmyq13clqjj";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
homepage = https://pgcenter.org/;
description = "Command-line admin tool for observing and troubleshooting PostgreSQL";

View file

@ -5911,7 +5911,9 @@ in
pg_top = callPackage ../tools/misc/pg_top { };
pgcenter = callPackage ../tools/misc/pgcenter { };
pgcenter = callPackage ../tools/misc/pgcenter {
inherit (darwin.apple_sdk.frameworks) Security;
};
pgmetrics = callPackage ../tools/misc/pgmetrics { };