conftest: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 04:29:00 -05:00
parent acac27bbef
commit e375bd2632
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "conftest";
@ -13,12 +13,14 @@ buildGoModule rec {
modSha256 = "1p7fjg1vcrcxb4f5hd00qxx4fqcl051klcjs6ljn4v46qcpn6dcn";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = ''
-ldflags=
-X main.version=${version}
'';
meta = with lib; {
meta = with stdenv.lib; {
description = "Write tests against structured configuration data";
homepage = https://github.com/instrumenta/conftest;
license = licenses.asl20;

View file

@ -161,7 +161,9 @@ in
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 { };