2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "conftest";
|
2020-05-03 17:38:23 +00:00
|
|
|
version = "0.18.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "instrumenta";
|
|
|
|
repo = "conftest";
|
|
|
|
rev = "v${version}";
|
2020-05-03 17:38:23 +00:00
|
|
|
sha256 = "15xzldcmnpfg1hd5zr5i7x2zjrgkwnp4nylxbn9kfic2dpjp1a38";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
vendorSha256 = "1kay7b5rxypj4i0d2iwdlb1mj0qq3zvlrjp34zzv5kywz5gy4144";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X main.version=${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Write tests against structured configuration data";
|
|
|
|
homepage = "https://github.com/instrumenta/conftest";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ yurrriq ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2020-05-15 21:57:56 +00:00
|
|
|
}
|