nixpkgs/pkgs/development/tools/conftest/default.nix
2020-05-02 06:01:53 +00:00

29 lines
700 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "conftest";
version = "0.18.2";
src = fetchFromGitHub {
owner = "instrumenta";
repo = "conftest";
rev = "v${version}";
sha256 = "15xzldcmnpfg1hd5zr5i7x2zjrgkwnp4nylxbn9kfic2dpjp1a38";
};
modSha256 = "0nwmxmh1pmism5r9zzghfrzizr1fbyc8d4jljrbzjjq1l449r2ja";
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;
};
}