wtf: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:52:00 -05:00
parent ce9ac41017
commit 0acc5e11b2
2 changed files with 8 additions and 3 deletions

View file

@ -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;

View file

@ -26246,7 +26246,9 @@ in
zimg = callPackage ../development/libraries/zimg { };
wtf = callPackage ../applications/misc/wtf { };
wtf = callPackage ../applications/misc/wtf {
inherit (darwin.apple_sdk.frameworks) Security;
};
zk-shell = callPackage ../applications/misc/zk-shell { };