cassowary: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 04:42:00 -05:00
parent 9fe9b59757
commit a35fcc1000
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "cassowary";
@ -13,9 +13,11 @@ buildGoModule rec {
modSha256 = "1iylnnmj5slji89pkb3shp4xqar1zbpl7bzwddbzpp8y52fmsv1c";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
meta = with lib; {
meta = with stdenv.lib; {
homepage = "https://github.com/rogerwelin/cassowary";
description = "Modern cross-platform HTTP load-testing tool written in Go";
license = licenses.mit;

View File

@ -1443,7 +1443,9 @@ in
ccnet = callPackage ../tools/networking/ccnet { };
cassowary = callPackage ../tools/networking/cassowary { };
cassowary = callPackage ../tools/networking/cassowary {
inherit (darwin.apple_sdk.frameworks) Security;
};
croc = callPackage ../tools/networking/croc {
inherit (darwin.apple_sdk.frameworks) Security;