diff --git a/nixos/tests/gotify-server.nix b/nixos/tests/gotify-server.nix index c6e00686aed..c0b8ba43548 100644 --- a/nixos/tests/gotify-server.nix +++ b/nixos/tests/gotify-server.nix @@ -41,5 +41,10 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : { ) assert title == "Gotify" + + # Ensure that the UI responds with a successfuly code and that the + # response is not empty + result = machine.succeed("curl -fsS localhost:3000") + assert result, "HTTP response from localhost:3000 must not be empty!" ''; }) diff --git a/pkgs/servers/gotify/default.nix b/pkgs/servers/gotify/default.nix index 88617d0cd8b..4360ac95b0b 100644 --- a/pkgs/servers/gotify/default.nix +++ b/pkgs/servers/gotify/default.nix @@ -3,7 +3,6 @@ , lib , fetchFromGitHub , buildGoModule -, packr , sqlite , callPackage }: @@ -32,12 +31,10 @@ buildGoModule rec { buildInputs = [ sqlite ]; - nativeBuildInputs = [ packr ]; - ui = callPackage ./ui.nix { }; preBuild = '' - cp -r ${ui}/libexec/gotify-ui/deps/gotify-ui/build ui/build && packr + cp -r ${ui}/libexec/gotify-ui/deps/gotify-ui/build ui/build && go run hack/packr/packr.go ''; passthru = {