diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-21 06:12:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-21 06:12:00 -0500 |
commit | d7d95111bd41a2501650134ce8f4404f8f34cde5 (patch) | |
tree | fef8c5614a553e71b3f4e6afa4f43ebb71d8da54 | |
parent | 306bc84748639db0b87694b54475a15647093c24 (diff) | |
download | nixlib-d7d95111bd41a2501650134ce8f4404f8f34cde5.tar nixlib-d7d95111bd41a2501650134ce8f4404f8f34cde5.tar.gz nixlib-d7d95111bd41a2501650134ce8f4404f8f34cde5.tar.bz2 nixlib-d7d95111bd41a2501650134ce8f4404f8f34cde5.tar.lz nixlib-d7d95111bd41a2501650134ce8f4404f8f34cde5.tar.xz nixlib-d7d95111bd41a2501650134ce8f4404f8f34cde5.tar.zst nixlib-d7d95111bd41a2501650134ce8f4404f8f34cde5.zip |
zsh-history: fix build on darwin
-rw-r--r-- | pkgs/shells/zsh/zsh-history/default.nix | 6 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/shells/zsh/zsh-history/default.nix b/pkgs/shells/zsh/zsh-history/default.nix index ece3c87cb664..382b76916d31 100644 --- a/pkgs/shells/zsh/zsh-history/default.nix +++ b/pkgs/shells/zsh/zsh-history/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, buildGoModule, installShellFiles, nixosTests }: +{ stdenv, fetchFromGitHub, buildGoModule, installShellFiles, nixosTests, Security }: buildGoModule rec { pname = "zsh-history"; @@ -13,6 +13,8 @@ buildGoModule rec { nativeBuildInputs = [ installShellFiles ]; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + modSha256 = "0f10b86gyn7m7lw43c8y1m30mdg0i092a319v3cb2qj05jb9vn42"; goPackagePath = "github.com/b4b4r07/history"; @@ -22,7 +24,7 @@ buildGoModule rec { 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"; license = licenses.mit; homepage = https://github.com/b4b4r07/history; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c9c21acfac43..2edf6d606115 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7810,7 +7810,9 @@ in 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 { }; |