2020-03-21 09:29:00 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
|
2019-06-23 03:03:47 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "conftest";
|
2020-03-14 04:21:19 +00:00
|
|
|
version = "0.18.0";
|
2019-09-18 22:59:36 +01:00
|
|
|
|
2019-06-23 03:03:47 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "instrumenta";
|
|
|
|
repo = "conftest";
|
|
|
|
rev = "v${version}";
|
2020-03-14 04:21:19 +00:00
|
|
|
sha256 = "189as930fksyqk3z636gyqdym1bqm522mya7msfnhzpnh46k5jvd";
|
2019-06-23 03:03:47 +01:00
|
|
|
};
|
|
|
|
|
2020-03-14 04:21:19 +00:00
|
|
|
modSha256 = "0gm08lrlaxc7504mapjdm3c4mwlzybnqxfwkkh6fawzvmd9sqddr";
|
2019-09-10 20:15:34 +01:00
|
|
|
|
2020-03-21 09:29:00 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2019-06-23 03:03:47 +01:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X main.version=${version}
|
|
|
|
'';
|
|
|
|
|
2020-03-21 09:29:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-06-23 03:03:47 +01:00
|
|
|
description = "Write tests against structured configuration data";
|
2020-03-14 04:21:19 +00:00
|
|
|
homepage = "https://github.com/instrumenta/conftest";
|
2019-06-23 03:03:47 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ yurrriq ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|