2020-03-27 08:33:21 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-06-23 04:03:47 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "conftest";
|
2020-05-02 08:01:53 +02:00
|
|
|
version = "0.18.2";
|
2019-09-18 23:59:36 +02:00
|
|
|
|
2019-06-23 04:03:47 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "instrumenta";
|
|
|
|
repo = "conftest";
|
|
|
|
rev = "v${version}";
|
2020-05-02 08:01:53 +02:00
|
|
|
sha256 = "15xzldcmnpfg1hd5zr5i7x2zjrgkwnp4nylxbn9kfic2dpjp1a38";
|
2019-06-23 04:03:47 +02:00
|
|
|
};
|
|
|
|
|
2020-05-02 08:01:53 +02:00
|
|
|
modSha256 = "0nwmxmh1pmism5r9zzghfrzizr1fbyc8d4jljrbzjjq1l449r2ja";
|
2019-09-10 21:15:34 +02:00
|
|
|
|
2019-06-23 04:03:47 +02:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X main.version=${version}
|
|
|
|
'';
|
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
meta = with lib; {
|
2019-06-23 04:03:47 +02:00
|
|
|
description = "Write tests against structured configuration data";
|
2020-03-14 05:21:19 +01:00
|
|
|
homepage = "https://github.com/instrumenta/conftest";
|
2019-06-23 04:03:47 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ yurrriq ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|