diff --git a/pkgs/development/tools/pet/default.nix b/pkgs/development/tools/pet/default.nix index e7f4fce3c4d4..f1096e479a78 100644 --- a/pkgs/development/tools/pet/default.nix +++ b/pkgs/development/tools/pet/default.nix @@ -1,4 +1,4 @@ -{ buildGoModule, fetchFromGitHub, lib }: +{ buildGoModule, fetchFromGitHub, stdenv, Security }: buildGoModule rec { pname = "pet"; @@ -13,9 +13,11 @@ buildGoModule rec { modSha256 = "06ham8lsx5c1vk5jkwp1aa9g4q4g7sfq7gxz2gkffa98x2vlawyf"; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + subPackages = [ "." ]; - meta = with lib; { + meta = with stdenv.lib; { description = "Simple command-line snippet manager, written in Go"; homepage = https://github.com/knqyf263/pet; license = licenses.mit; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 80ac7745bb48..0b5fe53b838b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -301,7 +301,9 @@ in inherit (darwin.apple_sdk.frameworks) Security; }; - pet = callPackage ../development/tools/pet { }; + pet = callPackage ../development/tools/pet { + inherit (darwin.apple_sdk.frameworks) Security; + }; run = callPackage ../development/tools/run { };