nixos/ntfy-sh: fix & expose nixos test

This commit is contained in:
Franz Pletz 2022-12-14 11:09:52 +01:00
parent 1b74623693
commit 5e11704593
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
2 changed files with 9 additions and 3 deletions

@ -1,4 +1,5 @@
import ./make-test-python.nix {
name = "ntfy-sh";
nodes.machine = { ... }: {
services.ntfy-sh.enable = true;

@ -1,4 +1,6 @@
{ lib, pkgs, nodejs, stdenv, buildGoModule, fetchFromGitHub, debianutils, mkdocs, python3, python3Packages }:
{ lib, pkgs, stdenv, buildGoModule, fetchFromGitHub, nixosTests
, nodejs, debianutils, mkdocs, python3, python3Packages }:
let
nodeDependencies = (import ./node-composition.nix {
@ -41,12 +43,15 @@ buildGoModule rec {
DISABLE_ESLINT_PLUGIN=true npm_config_offline=true make web-build docs-build
'';
passthru.updateScript = ./update.sh;
passthru = {
updateScript = ./update.sh;
tests.ntfy-sh = nixosTests.ntfy-sh;
};
meta = with lib; {
description = "Send push notifications to your phone or desktop via PUT/POST";
homepage = "https://ntfy.sh";
license = licenses.asl20;
maintainers = with maintainers; [ arjan-s ];
maintainers = with maintainers; [ arjan-s fpletz ];
};
}