Jas-SinghFSU / HyprPanel

A Bar/Panel for Hyprland with extensive customizability.
MIT License
767 stars 55 forks source link

Nix build failure caused by GdkPixbuf-2.0 #74

Closed mitsuruu closed 2 months ago

mitsuruu commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce

error: builder for '/nix/store/bjrkxrfk0z3q4gwnidhm4ilz7dyimygh-hyprpanel-latest.drv' failed with exit code 1;
       last 10 log lines:
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > calling 'preConfigure' function hook '_multioutConfig'
       > no configure script, doing nothing
       > Running phase: buildPhase
       > 4 | import GdkPixbuf from "types/@girs/gdkpixbuf-2.0/gdkpixbuf-2.0.js";
       >                           ^
       > error: Could not resolve: "types/@girs/gdkpixbuf-2.0/gdkpixbuf-2.0.js". Maybe you need to "bun install"?
       >     at /build/nrn2j05b1w5qinz0a77jva3xqj135kcc-source/modules/menus/dashboard/profile/index.ts:4:23
       For full logs, run 'nix log /nix/store/bjrkxrfk0z3q4gwnidhm4ilz7dyimygh-hyprpanel-latest.drv'.
error: 1 dependencies of derivation '/nix/store/0r8shgja2cgq0d3sgbmic1fi1vpb5kg8-hyprpanel.drv' failed to build

Expected behavior HyprPanel should build

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context This issue is caused by modules/menus/dashboard/profile/index.ts:4 with

import GdkPixbuf from "types/@girs/gdkpixbuf-2.0/gdkpixbuf-2.0.js";

which (as far as I'm aware anyway) isn't part of the default Ags types. Removing this line, and removing line 30 resolves the build issue, and doesn't seem to cause any issues in my testing.

mitsuruu commented 2 months ago

This issue should be closed with when the pixbuf_fix branch gets merged to master.