nixpkgs/pkgs/development/tools/conftest/default.nix

30 lines
673 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-06-23 02:03:47 +00:00
buildGoModule rec {
pname = "conftest";
2020-09-25 03:51:59 +00:00
version = "0.21.0";
2019-06-23 02:03:47 +00:00
src = fetchFromGitHub {
2020-06-29 19:14:05 +00:00
owner = "open-policy-agent";
2019-06-23 02:03:47 +00:00
repo = "conftest";
rev = "v${version}";
2020-09-25 03:51:59 +00:00
sha256 = "15xdsjv53hjgmdxzdakj07ggickw1jkcii31ycb3q8nh1ki05rhq";
2019-06-23 02:03:47 +00:00
};
2020-09-25 03:51:59 +00:00
vendorSha256 = "0795npr09680nmxiz9riq5v6rp91qgkvw1lc2mn9gzakv1ywl5rq";
doCheck = false;
2019-06-23 02:03:47 +00:00
buildFlagsArray = ''
-ldflags=
-X main.version=${version}
'';
meta = with lib; {
2019-06-23 02:03:47 +00:00
description = "Write tests against structured configuration data";
2020-06-29 19:14:05 +00:00
inherit (src.meta) homepage;
2019-06-23 02:03:47 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ yurrriq ];
};
2020-06-29 19:14:05 +00:00
}