about summary refs log tree commit diff
path: root/pkgs/applications/misc/wtf
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 05:52:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 05:52:00 -0500
commit0acc5e11b2bf0550261b11555ded92f7c7171f0c (patch)
tree60eedb7d2f58198d56fa748223f975ec7371a4e4 /pkgs/applications/misc/wtf
parentce9ac410171bb99c2a951fac264d2c06551cf6c8 (diff)
downloadnixlib-0acc5e11b2bf0550261b11555ded92f7c7171f0c.tar
nixlib-0acc5e11b2bf0550261b11555ded92f7c7171f0c.tar.gz
nixlib-0acc5e11b2bf0550261b11555ded92f7c7171f0c.tar.bz2
nixlib-0acc5e11b2bf0550261b11555ded92f7c7171f0c.tar.lz
nixlib-0acc5e11b2bf0550261b11555ded92f7c7171f0c.tar.xz
nixlib-0acc5e11b2bf0550261b11555ded92f7c7171f0c.tar.zst
nixlib-0acc5e11b2bf0550261b11555ded92f7c7171f0c.zip
wtf: fix build on darwin
Diffstat (limited to 'pkgs/applications/misc/wtf')
-rw-r--r--pkgs/applications/misc/wtf/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/applications/misc/wtf/default.nix b/pkgs/applications/misc/wtf/default.nix
index f12f96871c00..8c34baba5828 100644
--- a/pkgs/applications/misc/wtf/default.nix
+++ b/pkgs/applications/misc/wtf/default.nix
@@ -1,8 +1,9 @@
 { buildGoModule
 , fetchFromGitHub
-, lib
+, stdenv
 , makeWrapper
 , ncurses
+, Security
 }:
 
 buildGoModule rec {
@@ -24,12 +25,14 @@ buildGoModule rec {
 
   nativeBuildInputs = [ makeWrapper ];
 
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
+
   postInstall = ''
     mv "$out/bin/wtf" "$out/bin/wtfutil"
     wrapProgram "$out/bin/wtfutil" --prefix PATH : "${ncurses.dev}/bin"
   '';
 
-  meta = with lib; {
+  meta = with stdenv.lib; {
     description = "The personal information dashboard for your terminal";
     homepage = "https://wtfutil.com/";
     license = licenses.mpl20;