diff --git a/pkgs/development/web/flyctl/default.nix b/pkgs/development/web/flyctl/default.nix index 85165d501d97..05f07fd02608 100644 --- a/pkgs/development/web/flyctl/default.nix +++ b/pkgs/development/web/flyctl/default.nix @@ -1,4 +1,4 @@ -{ buildGoModule, fetchFromGitHub, lib }: +{ buildGoModule, fetchFromGitHub, stdenv, Security }: buildGoModule rec { pname = "flyctl"; @@ -11,6 +11,8 @@ buildGoModule rec { sha256 = "181j248i8j9g7kz5krg0bkbxkvmcwpz2vlknii5q3dy7yhgg19h3"; }; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + preBuild = '' go generate ./... ''; @@ -22,7 +24,7 @@ buildGoModule rec { modSha256 = "1mqkc7hnavvpbqar9f1d2vnm47p4car9abnk2ikyf27jr5glwmsd"; - meta = with lib; { + meta = with stdenv.lib; { description = "Command line tools for fly.io services"; homepage = "https://fly.io/"; license = licenses.asl20; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1246ee888463..010557e8b8dc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8156,7 +8156,9 @@ in }; fasm-bin = callPackage ../development/compilers/fasm/bin.nix { }; - flyctl = callPackage ../development/web/flyctl { }; + flyctl = callPackage ../development/web/flyctl { + inherit (darwin.apple_sdk.frameworks) Security; + }; fpc = callPackage ../development/compilers/fpc { };