gitAndTools.lefthook: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:21:00 -05:00
parent 2f022c86f2
commit b24059bc2f
2 changed files with 6 additions and 2 deletions

View file

@ -179,7 +179,9 @@ let
lab = callPackage ./lab { }; lab = callPackage ./lab { };
lefthook = callPackage ./lefthook { }; lefthook = callPackage ./lefthook {
inherit (darwin.apple_sdk.frameworks) Security;
};
pass-git-helper = python3Packages.callPackage ./pass-git-helper { }; pass-git-helper = python3Packages.callPackage ./pass-git-helper { };

View file

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }: { stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec { buildGoModule rec {
pname = "lefthook"; pname = "lefthook";
@ -13,6 +13,8 @@ buildGoModule rec {
modSha256 = "0ih11gw2y9dhv3zw1fzjmdfjln5h6zg1bj7sl68cglf6743siqnq"; modSha256 = "0ih11gw2y9dhv3zw1fzjmdfjln5h6zg1bj7sl68cglf6743siqnq";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Fast and powerful Git hooks manager for any type of projects"; description = "Fast and powerful Git hooks manager for any type of projects";
homepage = "https://github.com/Arkweid/lefthook"; homepage = "https://github.com/Arkweid/lefthook";