3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/conftest/default.nix

29 lines
698 B
Nix
Raw Normal View History

2019-06-23 03:03:47 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "conftest";
2019-12-04 05:53:44 +00:00
version = "0.15.0";
2019-06-23 03:03:47 +01:00
src = fetchFromGitHub {
owner = "instrumenta";
repo = "conftest";
rev = "v${version}";
2019-12-04 05:53:44 +00:00
sha256 = "0lb644fj80r4igxbslbd5pksirnyf6slz4yn0mznyx8i2bd1g4ic";
2019-06-23 03:03:47 +01:00
};
2019-12-04 05:53:44 +00:00
modSha256 = "1p7fjg1vcrcxb4f5hd00qxx4fqcl051klcjs6ljn4v46qcpn6dcn";
2019-06-23 03:03:47 +01: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;
};
}