diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-18 21:21:21 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-18 21:21:21 -0500 |
commit | a51275f3b5f82fe3e45ff4536ee2994c9fc4029a (patch) | |
tree | e4c3a7a5187216e5df0b00a7b2cda2ca322e1e24 /pkgs/applications/version-management/git-and-tools/gh | |
parent | 9a7f11e361fcca841959f544cc9887767c47cbf7 (diff) | |
download | nixpkgs-a51275f3b5f82fe3e45ff4536ee2994c9fc4029a.tar nixpkgs-a51275f3b5f82fe3e45ff4536ee2994c9fc4029a.tar.gz nixpkgs-a51275f3b5f82fe3e45ff4536ee2994c9fc4029a.tar.bz2 nixpkgs-a51275f3b5f82fe3e45ff4536ee2994c9fc4029a.tar.lz nixpkgs-a51275f3b5f82fe3e45ff4536ee2994c9fc4029a.tar.xz nixpkgs-a51275f3b5f82fe3e45ff4536ee2994c9fc4029a.tar.zst nixpkgs-a51275f3b5f82fe3e45ff4536ee2994c9fc4029a.zip |
gitAndTools.gh: fix build on darwin
Diffstat (limited to 'pkgs/applications/version-management/git-and-tools/gh')
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/gh/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/gh/default.nix b/pkgs/applications/version-management/git-and-tools/gh/default.nix index e74bd78fc59..e655813d340 100644 --- a/pkgs/applications/version-management/git-and-tools/gh/default.nix +++ b/pkgs/applications/version-management/git-and-tools/gh/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, buildGoModule, installShellFiles }: +{ stdenv, fetchFromGitHub, buildGoModule, installShellFiles, Security }: buildGoModule rec { pname = "gh"; @@ -20,6 +20,7 @@ buildGoModule rec { subPackages = [ "cmd/gh" ]; nativeBuildInputs = [ installShellFiles ]; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; postInstall = '' for shell in bash fish zsh; do $out/bin/gh completion -s $shell > gh.$shell @@ -27,7 +28,7 @@ buildGoModule rec { done ''; - meta = with lib; { + meta = with stdenv.lib; { description = "GitHub CLI tool"; homepage = "https://cli.github.com/"; license = licenses.mit; |