19 src = fetchFromGitHub {
22 rev = "refs/tags/v${version}";
23 hash = "sha256-GdkLasokpWegjK4kZzAskp1NGwcuMjrjjau75cEo8kg=";
26 vendorHash = "sha256-Rf6Xt54y1BN2o90rDW0WvEm4H5pPfsZ786MXFjsAFaM=";
33 "-X github.com/goss-org/goss/util.Version=v${version}"
36 nativeBuildInputs = [ makeWrapper ];
39 runtimeDependencies = [ bash getent ]
40 ++ lib.optionals stdenv.hostPlatform.isLinux [ systemd ];
42 wrapProgram $out/bin/goss \
43 --prefix PATH : "${lib.makeBinPath runtimeDependencies}"
48 inherit (nixosTests) goss;
49 version = testers.testVersion {
50 command = "goss --version";
52 version = "v${version}";
55 updateScript = nix-update-script { };
59 homepage = "https://github.com/goss-org/goss/";
60 changelog = "https://github.com/goss-org/goss/releases/tag/v${version}";
61 description = "Quick and easy server validation";
63 Goss is a YAML based serverspec alternative tool for validating a server’s configuration.
64 It eases the process of writing tests by allowing the user to generate tests from the current system state.
65 Once the test suite is written they can be executed, waited-on, or served as a health endpoint.
67 license = licenses.asl20;
69 maintainers = with maintainers; [ hyzual jk anthonyroussel ];
70 platforms = platforms.linux ++ platforms.darwin;