2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-06-23 03:03:47 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "conftest";
|
2020-06-26 07:00:43 +01:00
|
|
|
version = "0.19.0";
|
2019-09-18 22:59:36 +01:00
|
|
|
|
2019-06-23 03:03:47 +01:00
|
|
|
src = fetchFromGitHub {
|
2020-06-29 20:14:05 +01:00
|
|
|
owner = "open-policy-agent";
|
2019-06-23 03:03:47 +01:00
|
|
|
repo = "conftest";
|
|
|
|
rev = "v${version}";
|
2020-06-26 07:00:43 +01:00
|
|
|
sha256 = "0d6n51p4b8jwkfqympwxkqxssgy462m5pgv5qvm6jy5pm566qa08";
|
2019-06-23 03:03:47 +01:00
|
|
|
};
|
|
|
|
|
2020-06-26 07:00:43 +01:00
|
|
|
vendorSha256 = "150fj2c9qll39wiqk41w0qms0sdqiacb2z015j38kg60r8f6i4lm";
|
2019-09-10 20:15:34 +01:00
|
|
|
|
2019-06-23 03:03:47 +01:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X main.version=${version}
|
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-06-23 03:03:47 +01:00
|
|
|
description = "Write tests against structured configuration data";
|
2020-06-29 20:14:05 +01:00
|
|
|
inherit (src.meta) homepage;
|
2019-06-23 03:03:47 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ yurrriq ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2020-06-29 20:14:05 +01:00
|
|
|
}
|