2019-06-23 03:03:47 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "conftest";
|
2019-09-10 20:15:34 +01:00
|
|
|
version = "0.12.0";
|
2019-06-23 03:03:47 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "instrumenta";
|
|
|
|
repo = "conftest";
|
|
|
|
rev = "v${version}";
|
2019-09-10 20:15:34 +01:00
|
|
|
sha256 = "0blrbbnvnnxyw0idhglqdz16i7g6g86a6kw2iw707bg0yfdl1ncq";
|
2019-06-23 03:03:47 +01:00
|
|
|
};
|
|
|
|
|
2019-09-10 20:15:34 +01:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2019-06-23 03:03:47 +01:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X main.version=${version}
|
|
|
|
'';
|
|
|
|
|
2019-09-10 20:15:34 +01:00
|
|
|
modSha256 = "11999ywy73ng45gl1qypky8342jvishcp11bdxbigvqhwl2zbpav";
|
2019-06-23 03:03:47 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|