awsweeper: fix build on darwin

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

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }: { stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec { buildGoModule rec {
pname = "awsweeper"; pname = "awsweeper";
@ -13,7 +13,9 @@ buildGoModule rec {
modSha256 = "14yvf0svh7xqpc2y7xr94pc6r7d3iv2nsr8qs3f5q29hdc5hv3fs"; modSha256 = "14yvf0svh7xqpc2y7xr94pc6r7d3iv2nsr8qs3f5q29hdc5hv3fs";
meta = with lib; { buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
description = "A tool to clean out your AWS account"; description = "A tool to clean out your AWS account";
homepage = "https://github.com/cloudetc/awsweeper/"; homepage = "https://github.com/cloudetc/awsweeper/";
license = licenses.mpl20; license = licenses.mpl20;

View File

@ -1125,7 +1125,9 @@ in
awstats = callPackage ../tools/system/awstats { }; awstats = callPackage ../tools/system/awstats { };
awsweeper = callPackage ../tools/admin/awsweeper { }; awsweeper = callPackage ../tools/admin/awsweeper {
inherit (darwin.apple_sdk.frameworks) Security;
};
axel = callPackage ../tools/networking/axel { axel = callPackage ../tools/networking/axel {
libssl = openssl; libssl = openssl;