prototol: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:55:00 -05:00
parent 42b14764ab
commit f3c3ecae33
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, protobuf }:
{ stdenv, buildGoModule, fetchFromGitHub, makeWrapper, protobuf, Security }:
buildGoModule rec {
pname = "prototool";
@ -13,6 +13,8 @@ buildGoModule rec {
nativeBuildInputs = [ makeWrapper ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
modSha256 = "1gc8kc9mbi3mlh48zx4lcgpsrf8z879f1qj9wfyr66s7wd1ljazg";
postInstall = ''
@ -23,7 +25,7 @@ buildGoModule rec {
subPackages = [ "cmd/prototool" ];
meta = with lib; {
meta = with stdenv.lib; {
homepage = "https://github.com/uber/prototool";
description = "Your Swiss Army Knife for Protocol Buffers";
maintainers = [ maintainers.marsam ];

View File

@ -17359,7 +17359,9 @@ in
procdump = callPackage ../os-specific/linux/procdump { };
prototool = callPackage ../development/tools/prototool { };
prototool = callPackage ../development/tools/prototool {
inherit (darwin.apple_sdk.frameworks) Security;
};
qemu_kvm = lowPrio (qemu.override { hostCpuOnly = true; });