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

31 lines
786 B
Nix
Raw Normal View History

2020-03-21 10:29:00 +01:00
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
2019-06-23 04:03:47 +02:00
buildGoModule rec {
pname = "conftest";
2019-12-04 06:53:44 +01:00
version = "0.15.0";
2019-06-23 04:03:47 +02:00
src = fetchFromGitHub {
owner = "instrumenta";
repo = "conftest";
rev = "v${version}";
2019-12-04 06:53:44 +01:00
sha256 = "0lb644fj80r4igxbslbd5pksirnyf6slz4yn0mznyx8i2bd1g4ic";
2019-06-23 04:03:47 +02:00
};
2019-12-04 06:53:44 +01:00
modSha256 = "1p7fjg1vcrcxb4f5hd00qxx4fqcl051klcjs6ljn4v46qcpn6dcn";
2020-03-21 10:29:00 +01:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
2019-06-23 04:03:47 +02:00
buildFlagsArray = ''
-ldflags=
-X main.version=${version}
'';
2020-03-21 10:29:00 +01:00
meta = with stdenv.lib; {
2019-06-23 04:03:47 +02:00
description = "Write tests against structured configuration data";
homepage = https://github.com/instrumenta/conftest;
license = licenses.asl20;
maintainers = with maintainers; [ yurrriq ];
platforms = platforms.all;
};
}