1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/conftest/default.nix

30 lines
673 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-06-23 03:03:47 +01:00
buildGoModule rec {
pname = "conftest";
2020-07-31 21:25:05 +01:00
version = "0.20.0";
2019-06-23 03:03:47 +01:00
src = fetchFromGitHub {
2020-06-29 20:14:05 +01:00
owner = "open-policy-agent";
2019-06-23 03:03:47 +01:00
repo = "conftest";
rev = "v${version}";
2020-07-31 21:25:05 +01:00
sha256 = "0v9cya3x0v1fqpqswayskmm0xzbvfn4hbhz2k6b3j6fzcq2dnzj3";
2019-06-23 03:03:47 +01:00
};
2020-07-31 21:25:05 +01:00
vendorSha256 = "1nxl00f8dbdiykwa54qm9r0cv16zcab880ay8mlmxba7srysvb1y";
doCheck = false;
2019-06-23 03:03:47 +01:00
buildFlagsArray = ''
-ldflags=
-X main.version=${version}
'';
meta = with lib; {
2019-06-23 03:03:47 +01:00
description = "Write tests against structured configuration data";
2020-06-29 20:14:05 +01:00
inherit (src.meta) homepage;
2019-06-23 03:03:47 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ yurrriq ];
};
2020-06-29 20:14:05 +01:00
}