quickshell icon indicating copy to clipboard operation
quickshell copied to clipboard

guix: fix package defenition

Open ch4og opened this issue 3 weeks ago • 6 comments

Changes:

  1. After last change to quickshell.scm with addition of polkit, module for polkit wasn't added.

  2. I found that many inputs were in wrong places, some of them even repeated. Also bash-minimal should be added since we wrap binary. This caused errors like so when using as a channel:

guix home: error: profile contains conflicting entries for libxkbcommon
guix home: error:   first entry: [email protected] /gnu/store/81knrk9sar7g1syz35dgfxlnyq1gi5l1-libxkbcommon-1.11.0
guix home: error:    ... propagated from [email protected]
guix home: error:    ... propagated from quickshell@git
guix home: error:   second entry: [email protected] /gnu/store/n8kmqvqjbps44jqzrib55b9vrp1rr15j-libxkbcommon-1.11.0
guix home: error:    ... propagated from [email protected]
guix home: error:    ... propagated from [email protected]
hint: Try upgrading both `quickshell' and `network-manager-applet', or remove one of them from

and

$ QT_QPA_PLATFORM=wayland quickshell
  INFO: Launching config: "/home/ch/.config/quickshell/shell.qml"
  INFO: Shell ID: "50efbd8f00f9268d6d474eee6923db87" Path ID "50efbd8f00f9268d6d474eee6923db87"
  INFO: Saving logs to "/run/user/1000/quickshell/by-id/5vmumqi6t/log.qslog"
  WARN qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
 FATAL: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, xcb.

fish: Job 1, 'QT_QPA_PLATFORM=wayland quicksh…' terminated by signal SIGABRT (Abort)
  1. Currenty Guix is absolutely fine with using this repo as a channel with in-tree source, so I made PR to docs

Result:

Setup:

$ grep -r quickshell /tmp/channels*
/tmp/channels.scm:       (name 'quickshell)
/tmp/channels.scm:       (url "https://github.com/quickshell-mirror/quickshell")
/tmp/channels2.scm:      (name 'quickshell)
/tmp/channels2.scm:      (url "https://github.com/ch4og/quickshell")

$ cat /tmp/quickshell.scm
(use-modules (quickshell)
             (gnu packages))

(packages->manifest
 (list quickshell-git))

Using upstream repo as a channel:

$ guix time-machine -C /tmp/channels.scm -- shell --container --manifest=/tmp/quickshell.scm -- quickshell --version
...
build of /gnu/store/wxsca503slgp6fw97jh4crl1791pfdpa-guix-package-cache.drv failed
hint: This usually indicates a bug in one of the channels you are pulling from, or
some incompatibility among them.  You can check the build log and report the
issue to the channel developers.

The channels you are pulling from are: guix quickshell.

View build log at '/var/log/guix/drvs/wx/sca503slgp6fw97jh4crl1791pfdpa-guix-package-cache.drv.gz'.
cannot build derivation `/gnu/store/8560ic1v4yh99565vw3wzmv90pkb0wmw-profile.drv': 1 dependencies couldn't be built
guix time-machine: error: build of `/gnu/store/8560ic1v4yh99565vw3wzmv90pkb0wmw-profile.drv' failed

$ zcat /var/log/guix/drvs/wx/sca503slgp6fw97jh4crl1791pfdpa-guix-package-cache.drv.gz
...
(exception unbound-variable (value #f) (value "Unbound variable: ~S") (value (polkit)) (value #f))

Using my PR's repo as a channel:

$ guix time-machine -C /tmp/channels2.scm -- shell --container --manifest=/tmp/quickshell.scm -- quickshell --version
...
quickshell 0.2.1, revision , distributed by: "In-tree Guix channel"

ch4og avatar Nov 30 '25 00:11 ch4og