about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-22 08:13:37 -0500
committerGitHub <noreply@github.com>2020-03-22 08:13:37 -0500
commit4e6bf03504c9e09f067cc6dee6b5aeec43a1405c (patch)
treeb014a4f89e335fac7758d35a7669792e5ad3c417 /pkgs/tools/system
parentafd997aab6e9b7a322198092c7828d6c560ac06f (diff)
parent7eb35cd1447a7c076bd4869c0e2e5f1ee428d70d (diff)
downloadnixlib-4e6bf03504c9e09f067cc6dee6b5aeec43a1405c.tar
nixlib-4e6bf03504c9e09f067cc6dee6b5aeec43a1405c.tar.gz
nixlib-4e6bf03504c9e09f067cc6dee6b5aeec43a1405c.tar.bz2
nixlib-4e6bf03504c9e09f067cc6dee6b5aeec43a1405c.tar.lz
nixlib-4e6bf03504c9e09f067cc6dee6b5aeec43a1405c.tar.xz
nixlib-4e6bf03504c9e09f067cc6dee6b5aeec43a1405c.tar.zst
nixlib-4e6bf03504c9e09f067cc6dee6b5aeec43a1405c.zip
Merge pull request #83099 from marsam/fix-buildGoModule-packages-darwin
treewide: fix buildGoModule packages on darwin
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/ctop/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/system/ctop/default.nix b/pkgs/tools/system/ctop/default.nix
index 4f492def1624..b9ea0c04aa85 100644
--- a/pkgs/tools/system/ctop/default.nix
+++ b/pkgs/tools/system/ctop/default.nix
@@ -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;