| 1234567891011121314151617181920 |
- # shell.nix
- { pkgs ? import <nixpkgs> {} }:
- pkgs.mkShell {
- buildInputs = [
- pkgs.gcc
- pkgs.pkg-config
- pkgs.meson
- pkgs.ninja
- pkgs.gtkmm4
- ];
- # --- New Code Starts Here ---
- # This hook runs when you enter the shell.
- # It sets an environment variable telling GTK where to find its schemas.
- shellHook = ''
- export GSETTINGS_SCHEMA_PATH=${pkgs.gtk4}/share/glib-2.0/schemas
- '';
- # --- New Code Ends Here ---
- }
|