diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2021-08-27 11:02:18 -0300 |
---|---|---|
committer | superherointj <5861043+superherointj@users.noreply.github.com> | 2021-08-27 12:31:38 -0300 |
commit | 8152b2725306104d42864ae5c303526a48b7e1ef (patch) | |
tree | 84a0906f9a0a09e6638783fa83a45f9a79a75987 /pkgs/development/tools/conftest/default.nix | |
parent | a0eae3b8777f1d0d9e865a50fec1728bf279b009 (diff) | |
download | nixpkgs-8152b2725306104d42864ae5c303526a48b7e1ef.tar nixpkgs-8152b2725306104d42864ae5c303526a48b7e1ef.tar.gz nixpkgs-8152b2725306104d42864ae5c303526a48b7e1ef.tar.bz2 nixpkgs-8152b2725306104d42864ae5c303526a48b7e1ef.tar.lz nixpkgs-8152b2725306104d42864ae5c303526a48b7e1ef.tar.xz nixpkgs-8152b2725306104d42864ae5c303526a48b7e1ef.tar.zst nixpkgs-8152b2725306104d42864ae5c303526a48b7e1ef.zip |
conftest: fix tests
* add superherointj as maintainer
Diffstat (limited to 'pkgs/development/tools/conftest/default.nix')
-rw-r--r-- | pkgs/development/tools/conftest/default.nix | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pkgs/development/tools/conftest/default.nix b/pkgs/development/tools/conftest/default.nix index 74e823ad9b8..d89f9bff523 100644 --- a/pkgs/development/tools/conftest/default.nix +++ b/pkgs/development/tools/conftest/default.nix @@ -13,16 +13,24 @@ buildGoModule rec { vendorSha256 = "sha256-jI5bX6S2C0ckiiieVlaRNEsLS/5gGkC3o/xauDtCOjA="; - doCheck = false; - ldflags = [ "-s" "-w" "-X github.com/open-policy-agent/conftest/internal/commands.version=${version}" ]; + HOME = "$TMPDIR"; + + doInstallCheck = true; + installCheckPhase = '' + $out/bin/conftest --version | grep ${version} > /dev/null + ''; + meta = with lib; { description = "Write tests against structured configuration data"; + downloadPage = "https://github.com/open-policy-agent/conftest"; + homepage = "https://www.conftest.dev"; + license = licenses.asl20; longDescription = '' Conftest helps you write tests against structured configuration data. Using Conftest you can write tests for your Kubernetes configuration, @@ -33,8 +41,6 @@ buildGoModule rec { assertions. You can read more about Rego in 'How do I write policies' in the Open Policy Agent documentation. ''; - inherit (src.meta) homepage; - license = licenses.asl20; - maintainers = with maintainers; [ yurrriq jk ]; + maintainers = with maintainers; [ jk superherointj yurrriq ]; }; } |