ctop: fix build on darwin
This commit is contained in:
parent
6f95d105e0
commit
acac27bbef
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "ctop";
|
pname = "ctop";
|
||||||
@ -13,9 +13,11 @@ buildGoModule rec {
|
|||||||
|
|
||||||
modSha256 = "0wxv6yzlgki7047qszx9p9xpph95bg097jkgaa0b3wbpx8vg7qml";
|
modSha256 = "0wxv6yzlgki7047qszx9p9xpph95bg097jkgaa0b3wbpx8vg7qml";
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.build=v${version}" ];
|
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";
|
description = "Top-like interface for container metrics";
|
||||||
homepage = "https://ctop.sh/";
|
homepage = "https://ctop.sh/";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
@ -18785,7 +18785,9 @@ in
|
|||||||
|
|
||||||
csdp = callPackage ../applications/science/math/csdp { };
|
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; };
|
cubicsdr = callPackage ../applications/radio/cubicsdr { wxGTK = wxGTK31; };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user