From 5e117045934fa1b49f68465a52ff105b2911a391 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Wed, 14 Dec 2022 11:09:52 +0100 Subject: [PATCH] nixos/ntfy-sh: fix & expose nixos test --- nixos/tests/ntfy-sh.nix | 1 + pkgs/tools/misc/ntfy-sh/default.nix | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/nixos/tests/ntfy-sh.nix b/nixos/tests/ntfy-sh.nix index c0c289b904b6..9a36fcdf3922 100644 --- a/nixos/tests/ntfy-sh.nix +++ b/nixos/tests/ntfy-sh.nix @@ -1,4 +1,5 @@ import ./make-test-python.nix { + name = "ntfy-sh"; nodes.machine = { ... }: { services.ntfy-sh.enable = true; diff --git a/pkgs/tools/misc/ntfy-sh/default.nix b/pkgs/tools/misc/ntfy-sh/default.nix index 76242764da7c..6a258d5829b4 100644 --- a/pkgs/tools/misc/ntfy-sh/default.nix +++ b/pkgs/tools/misc/ntfy-sh/default.nix @@ -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 ]; }; }