diff --git a/pkgs/development/tools/conftest/default.nix b/pkgs/development/tools/conftest/default.nix new file mode 100644 index 00000000000..192938473e0 --- /dev/null +++ b/pkgs/development/tools/conftest/default.nix @@ -0,0 +1,28 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "conftest"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "instrumenta"; + repo = "conftest"; + rev = "v${version}"; + sha256 = "0qq2kp9h91rirlhml5vyzmi7rd4v3pkqjk2bn7mvdn578jnwww24"; + }; + + buildFlagsArray = '' + -ldflags= + -X main.version=${version} + ''; + + modSha256 = "0c9phka7n2cfi8lf0a3prks2pjna5dgf5lj6az82iklnq4p7177y"; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d0ef5f16424..19ed5ddcaef 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -151,6 +151,8 @@ in cmark = callPackage ../development/libraries/cmark { }; + conftest = callPackage ../development/tools/conftest {}; + corgi = callPackage ../development/tools/corgi { }; dhallToNix = callPackage ../build-support/dhall-to-nix.nix {