3
0
Fork 0
forked from mirrors/nixpkgs

ctop: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 04:28:00 -05:00
parent 6f95d105e0
commit acac27bbef
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "ctop";
@ -13,9 +13,11 @@ buildGoModule rec {
modSha256 = "0wxv6yzlgki7047qszx9p9xpph95bg097jkgaa0b3wbpx8vg7qml";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.build=v${version}" ];
meta = with lib; {
meta = with stdenv.lib; {
description = "Top-like interface for container metrics";
homepage = "https://ctop.sh/";
license = licenses.mit;

View file

@ -18785,7 +18785,9 @@ in
csdp = callPackage ../applications/science/math/csdp { };
ctop = callPackage ../tools/system/ctop { };
ctop = callPackage ../tools/system/ctop {
inherit (darwin.apple_sdk.frameworks) Security;
};
cubicsdr = callPackage ../applications/radio/cubicsdr { wxGTK = wxGTK31; };