ctop: fix build on darwin
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user