diff --git a/pkgs/development/tools/mod/default.nix b/pkgs/development/tools/mod/default.nix index 67b829877b04..cc94692c023a 100644 --- a/pkgs/development/tools/mod/default.nix +++ b/pkgs/development/tools/mod/default.nix @@ -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 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9e9794b8914f..2f772ab3ebb4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 {};