conftest: 0.7.0 -> 0.12.0, ensure go 1.13 compatibility

This commit is contained in:
Roman Volosatovs
2019-09-12 17:15:41 +02:00
parent 5c8c3d6ce4
commit 2a7c0f2ab9
2 changed files with 108 additions and 3 deletions
+9 -3
View File
@@ -2,21 +2,27 @@
buildGoModule rec {
pname = "conftest";
version = "0.7.0";
version = "0.12.0";
src = fetchFromGitHub {
owner = "instrumenta";
repo = "conftest";
rev = "v${version}";
sha256 = "0qq2kp9h91rirlhml5vyzmi7rd4v3pkqjk2bn7mvdn578jnwww24";
sha256 = "0blrbbnvnnxyw0idhglqdz16i7g6g86a6kw2iw707bg0yfdl1ncq";
};
patches = [
# Version 0.12.0 does not build with go 1.13. See https://github.com/instrumenta/conftest/pull/85.
# TODO: Remove once https://github.com/instrumenta/conftest/pull/85 is merged and lands in a release.
./go-1.13-deps.patch
];
buildFlagsArray = ''
-ldflags=
-X main.version=${version}
'';
modSha256 = "0c9phka7n2cfi8lf0a3prks2pjna5dgf5lj6az82iklnq4p7177y";
modSha256 = "11999ywy73ng45gl1qypky8342jvishcp11bdxbigvqhwl2zbpav";
meta = with lib; {
description = "Write tests against structured configuration data";