mod: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:47:00 -05:00
parent e0757cf88a
commit ee2bda2119
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGoModule, fetchFromGitHub, stdenv, Security }:
buildGoModule rec {
pname = "mod";
@ -13,9 +13,11 @@ buildGoModule rec {
modSha256 = "0x7bdhvam9l23cbdqpna8kwg0v6yhgmw0hlbm48bbhjl27lg7svc";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
subPackages = [ "cmd/mod" ];
meta = with lib; {
meta = with stdenv.lib; {
description = "Automated Semantic Import Versioning Upgrades for Go";
longDescription = ''
Command line tool to upgrade/downgrade Semantic Import Versioning in Go

View file

@ -301,7 +301,9 @@ in
run = callPackage ../development/tools/run { };
mod = callPackage ../development/tools/mod { };
mod = callPackage ../development/tools/mod {
inherit (darwin.apple_sdk.frameworks) Security;
};
broadlink-cli = callPackage ../tools/misc/broadlink-cli {};