mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
wtf: fix build on darwin
This commit is contained in:
parent
ce9ac41017
commit
0acc5e11b2
@ -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;
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user