chezmoi: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 04:40:00 -05:00
parent e50e48e9df
commit 86d19c4e32
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles, Security }:
buildGoModule rec {
pname = "chezmoi";
@ -13,6 +13,8 @@ buildGoModule rec {
modSha256 = "0gh314d3mspqmz2z3m05bgsp62mrhb48m4mwhfy5h62fs7aqymr8";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = [
"-ldflags=-s -w -X github.com/twpayne/chezmoi/cmd.VersionStr=${version}"
];

View File

@ -843,7 +843,9 @@ in
certigo = callPackage ../tools/admin/certigo { };
chezmoi = callPackage ../tools/misc/chezmoi { };
chezmoi = callPackage ../tools/misc/chezmoi {
inherit (darwin.apple_sdk.frameworks) Security;
};
chipsec = callPackage ../tools/security/chipsec {
kernel = null;