diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-05-18 03:17:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-18 03:17:32 +0200 |
commit | e34309b62a4005ab1be1af256f99452ab73d5293 (patch) | |
tree | f89707f72552bae5a14ec4b0a245994c624cdcae /pkgs/tools | |
parent | af2a7fef84f052edb1361018948db7754523b0dc (diff) | |
parent | cad7a9793d9acbec0c102e948fd443140af91846 (diff) |
Merge pull request #121497 from Hyzual/add-goss
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/goss/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/misc/goss/default.nix b/pkgs/tools/misc/goss/default.nix new file mode 100644 index 0000000000000..bbe947ecd120d --- /dev/null +++ b/pkgs/tools/misc/goss/default.nix @@ -0,0 +1,34 @@ +{ lib, fetchFromGitHub, buildGoModule }: + +buildGoModule rec { + pname = "goss"; + version = "0.3.16"; + + src = fetchFromGitHub { + owner = "aelsabbahy"; + repo = pname; + rev = "v${version}"; + sha256 = "1m5w5vwmc9knvaihk61848rlq7qgdyylzpcwi64z84rkw8qdnj6p"; + }; + + vendorSha256 = "1lyqjkwj8hybj5swyrv6357hs8sxmf4wim0c8yhfb9mv7fsxhrv7"; + + CGO_ENABLED = 0; + preBuild = '' + buildFlagsArray+=("-ldflags" "-s -w -X main.version=v${version}") + ''; + + meta = with lib; { + homepage = "https://github.com/aelsabbahy/goss/"; + changelog = "https://github.com/aelsabbahy/goss/releases/tag/v${version}"; + description = "Quick and easy server validation"; + longDescription = '' + Goss is a YAML based serverspec alternative tool for validating a server’s configuration. + It eases the process of writing tests by allowing the user to generate tests from the current system state. + Once the test suite is written they can be executed, waited-on, or served as a health endpoint. + ''; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = with maintainers; [ hyzual jk ]; + }; +} |