git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #121497 from Hyzual/add-goss
commite34309b62a4005ab1be1af256f99452ab73d5293 authorSandro <sandro.jaeckel@gmail.com> dateTue 18 May 2021, 03:17 (6 years ago) parentaf2a7fecad7a97
3 files changed+42
maintainers/maintainer-list.nix+6 pkgs/tools/misc/goss/default.nix+34 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+6
@@ -4139,6 +4139,12 @@
41394139 githubId = 12491746;
41404140 name = "Masato Yonekawa";
41414141 };
4142+ hyzual = {
4143+ email = "hyzual@gmail.com";
4144+ github = "Hyzual";
4145+ githubId = 2051507;
4146+ name = "Joris Masson";
4147+ };
41424148 hzeller = {
41434149 email = "h.zeller@acm.org";
41444150 github = "hzeller";
pkgs/tools/misc/goss/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ lib, fetchFromGitHub, buildGoModule }:
2+
3+buildGoModule rec {
4+ pname = "goss";
5+ version = "0.3.16";
6+
7+ src = fetchFromGitHub {
8+ owner = "aelsabbahy";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "1m5w5vwmc9knvaihk61848rlq7qgdyylzpcwi64z84rkw8qdnj6p";
12+ };
13+
14+ vendorSha256 = "1lyqjkwj8hybj5swyrv6357hs8sxmf4wim0c8yhfb9mv7fsxhrv7";
15+
16+ CGO_ENABLED = 0;
17+ preBuild = ''
18+ buildFlagsArray+=("-ldflags" "-s -w -X main.version=v${version}")
19+ '';
20+
21+ meta = with lib; {
22+ homepage = "https://github.com/aelsabbahy/goss/";
23+ changelog = "https://github.com/aelsabbahy/goss/releases/tag/v${version}";
24+ description = "Quick and easy server validation";
25+ longDescription = ''
26+ Goss is a YAML based serverspec alternative tool for validating a server’s configuration.
27+ It eases the process of writing tests by allowing the user to generate tests from the current system state.
28+ Once the test suite is written they can be executed, waited-on, or served as a health endpoint.
29+ '';
30+ license = licenses.asl20;
31+ platforms = platforms.linux;
32+ maintainers = with maintainers; [ hyzual jk ];
33+ };
34+}
pkgs/top-level/all-packages.nix+2
@@ -2664,6 +2664,8 @@ in
26642664
26652665 godu = callPackage ../tools/misc/godu { };
26662666
2667+ goss = callPackage ../tools/misc/goss { };
2668+
26672669 gosu = callPackage ../tools/misc/gosu { };
26682670
26692671 gotify-cli = callPackage ../tools/misc/gotify-cli { };