I am trying to build and test Andrew Gossage’s project found here, but I am having difficulty getting the css and js to load properly in the native app.
I am building and running on Nixos and I have created a nix flake that includes the following packages that are dependencies for the project:
{
description = "Zig project with GTK+ 3.0 dependencies";
inputs = {
pkgs_25_05.url = "github:NixOS/nixpkgs/nixos-25.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, pkgs_25_05, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
old-pkgs = import pkgs_25_05 {inherit system;};
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
sqlite
gtk3
# libsoup_3
pkg-config
fortune
] ++ [old-pkgs.webkitgtk_4_0];
};
}
);
}
This allows the project to be built and run, but the window that opens only serves the html, no css or js.
I can access the server via the browser by navigating to localhost:8081, where the css and js are loaded, but issuing server requests through htmx only results in a response code of 500 from the server.
I am getting one warning when running the project:
(server:69553): Gtk-WARNING **: 10:36:28.844: Loading IM context type ‘xim’ failed
I am not sure where to start to debug this, because it could be in the implementation of the server, gtk or it could be that nix is not providing all needed dependencies properly.