zsh-history: fix build on darwin
This commit is contained in:
parent
306bc84748
commit
d7d95111bd
@ -1,4 +1,4 @@
|
|||||||
{ lib, fetchFromGitHub, buildGoModule, installShellFiles, nixosTests }:
|
{ stdenv, fetchFromGitHub, buildGoModule, installShellFiles, nixosTests, Security }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "zsh-history";
|
pname = "zsh-history";
|
||||||
@ -13,6 +13,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
modSha256 = "0f10b86gyn7m7lw43c8y1m30mdg0i092a319v3cb2qj05jb9vn42";
|
modSha256 = "0f10b86gyn7m7lw43c8y1m30mdg0i092a319v3cb2qj05jb9vn42";
|
||||||
goPackagePath = "github.com/b4b4r07/history";
|
goPackagePath = "github.com/b4b4r07/history";
|
||||||
|
|
||||||
@ -22,7 +24,7 @@ buildGoModule rec {
|
|||||||
installShellCompletion --zsh --name _history $out/share/zsh/completions/_history
|
installShellCompletion --zsh --name _history $out/share/zsh/completions/_history
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A CLI to provide enhanced history for your ZSH shell";
|
description = "A CLI to provide enhanced history for your ZSH shell";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
homepage = https://github.com/b4b4r07/history;
|
homepage = https://github.com/b4b4r07/history;
|
||||||
|
@ -7810,7 +7810,9 @@ in
|
|||||||
|
|
||||||
zsh-git-prompt = callPackage ../shells/zsh/zsh-git-prompt { };
|
zsh-git-prompt = callPackage ../shells/zsh/zsh-git-prompt { };
|
||||||
|
|
||||||
zsh-history = callPackage ../shells/zsh/zsh-history { };
|
zsh-history = callPackage ../shells/zsh/zsh-history {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
};
|
||||||
|
|
||||||
zsh-history-substring-search = callPackage ../shells/zsh/zsh-history-substring-search { };
|
zsh-history-substring-search = callPackage ../shells/zsh/zsh-history-substring-search { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user