wtf: fix build on darwin
This commit is contained in:
parent
ce9ac41017
commit
0acc5e11b2
|
@ -1,8 +1,9 @@
|
||||||
{ buildGoModule
|
{ buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, lib
|
, stdenv
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, ncurses
|
, ncurses
|
||||||
|
, Security
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
|
@ -24,12 +25,14 @@ buildGoModule rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv "$out/bin/wtf" "$out/bin/wtfutil"
|
mv "$out/bin/wtf" "$out/bin/wtfutil"
|
||||||
wrapProgram "$out/bin/wtfutil" --prefix PATH : "${ncurses.dev}/bin"
|
wrapProgram "$out/bin/wtfutil" --prefix PATH : "${ncurses.dev}/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "The personal information dashboard for your terminal";
|
description = "The personal information dashboard for your terminal";
|
||||||
homepage = "https://wtfutil.com/";
|
homepage = "https://wtfutil.com/";
|
||||||
license = licenses.mpl20;
|
license = licenses.mpl20;
|
||||||
|
|
|
@ -26246,7 +26246,9 @@ in
|
||||||
|
|
||||||
zimg = callPackage ../development/libraries/zimg { };
|
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 { };
|
zk-shell = callPackage ../applications/misc/zk-shell { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue