@@ -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+}