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

29 lines
700 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-06-23 02:03:47 +00:00
buildGoModule rec {
pname = "conftest";
2020-04-01 10:10:40 +00:00
version = "0.18.1";
2019-06-23 02:03:47 +00:00
src = fetchFromGitHub {
owner = "instrumenta";
repo = "conftest";
rev = "v${version}";
2020-04-01 10:10:40 +00:00
sha256 = "0ial1zs5aqcwza813ny6zqn9ybq6ibrqjmaccwbbam1k9f5rplqv";
2019-06-23 02:03:47 +00:00
};
2020-04-01 10:10:40 +00:00
modSha256 = "17j5fhgwfpyg9r7a5g9rmvkaz510xx9s4mbl1cmyzysvddc6f5wp";
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-03-14 04:21:19 +00:00
homepage = "https://github.com/instrumenta/conftest";
2019-06-23 02:03:47 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ yurrriq ];
platforms = platforms.all;
};
}