Revert "gitAndTools.gh: fix build on darwin"
This reverts commita51275f3b5
. Not needed now that Security is propagated via go in0bba7474b3
This commit is contained in:
parent
596b601dfa
commit
2ae5cf317f
@ -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 { };
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, buildGoModule, installShellFiles, Security }:
|
||||
{ lib, fetchFromGitHub, buildGoModule, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gh";
|
||||
@ -20,7 +20,6 @@ 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
|
||||
@ -28,7 +27,7 @@ buildGoModule rec {
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "GitHub CLI tool";
|
||||
homepage = "https://cli.github.com/";
|
||||
license = licenses.mit;
|
||||
|
Loading…
Reference in New Issue
Block a user