From f3c3ecae33c4c4914e91c6df1170de58c7968a47 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 21 Mar 2020 05:55:00 -0500 Subject: [PATCH] prototol: fix build on darwin --- pkgs/development/tools/prototool/default.nix | 6 ++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/prototool/default.nix b/pkgs/development/tools/prototool/default.nix index 37b0f1fdf8d..15a854e4d86 100644 --- a/pkgs/development/tools/prototool/default.nix +++ b/pkgs/development/tools/prototool/default.nix @@ -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 ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0b5fe53b838..5ce565c0081 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; });