conftest: fix build on darwin
This commit is contained in:
parent
acac27bbef
commit
e375bd2632
2 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "conftest";
|
pname = "conftest";
|
||||||
|
@ -13,12 +13,14 @@ buildGoModule rec {
|
||||||
|
|
||||||
modSha256 = "1p7fjg1vcrcxb4f5hd00qxx4fqcl051klcjs6ljn4v46qcpn6dcn";
|
modSha256 = "1p7fjg1vcrcxb4f5hd00qxx4fqcl051klcjs6ljn4v46qcpn6dcn";
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
buildFlagsArray = ''
|
buildFlagsArray = ''
|
||||||
-ldflags=
|
-ldflags=
|
||||||
-X main.version=${version}
|
-X main.version=${version}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Write tests against structured configuration data";
|
description = "Write tests against structured configuration data";
|
||||||
homepage = https://github.com/instrumenta/conftest;
|
homepage = https://github.com/instrumenta/conftest;
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
|
|
@ -161,7 +161,9 @@ in
|
||||||
|
|
||||||
cm256cc = callPackage ../development/libraries/cm256cc { };
|
cm256cc = callPackage ../development/libraries/cm256cc { };
|
||||||
|
|
||||||
conftest = callPackage ../development/tools/conftest { };
|
conftest = callPackage ../development/tools/conftest {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
};
|
||||||
|
|
||||||
corgi = callPackage ../development/tools/corgi { };
|
corgi = callPackage ../development/tools/corgi { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue