Skip to content

Commit

Permalink
Merge pull request #83632 from zowoq/gh-darwin
Browse files Browse the repository at this point in the history
Revert "gitAndTools.gh: fix build on darwin"
  • Loading branch information
Mic92 committed Mar 29, 2020
2 parents eda60c5 + 2ae5cf3 commit 30c17b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ let

diff-so-fancy = callPackage ./diff-so-fancy { };

gh = callPackage ./gh {
inherit (darwin.apple_sdk.frameworks) Security;
};
gh = callPackage ./gh { };

ghq = callPackage ./ghq { };

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, buildGoModule, installShellFiles, Security }:
{ lib, fetchFromGitHub, buildGoModule, installShellFiles }:

buildGoModule rec {
pname = "gh";
Expand All @@ -20,15 +20,14 @@ 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
installShellCompletion gh.$shell
done
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "GitHub CLI tool";
homepage = "https://cli.github.com/";
license = licenses.mit;
Expand Down

0 comments on commit 30c17b6

Please sign in to comment.