From e7547b5c8715b6d89f7f8a6547fd570c0c3cd70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Handr=C3=A9=20Stolp?= Date: Thu, 15 Aug 2024 16:19:34 +0200 Subject: [PATCH] Fix missing web assets The web assets were missing so the server only served up empty pages. The reason was that the `web` directory that gets built with the web assets wasn't filtered out in the original source. --- flake.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 4b35c2e..afc229c 100644 --- a/flake.nix +++ b/flake.nix @@ -42,7 +42,14 @@ craneLib = crane.lib.${system}.overrideToolchain toolchain; - src = "${openobserve-src}"; + src = + # filter out the web directory which gets built and linked in later + let f = name: type: + with builtins; + with pkgs.lib; + let baseName = baseNameOf (toString name); + in !(type == "directory" && baseName == "web"); + in pkgs.lib.cleanSourceWith {filter = f; src = "${openobserve-src}";}; # Common arguments can be set here to avoid repeating them later commonArgs = {