Non-guile dependencies don't have their module imported in the generated guix.scm
Hi,
I've defined my config like so:
(hall-description
(name "x-resize")
(prefix "")
(version "0.1")
(author "Maxim Cournoyer")
(copyright (2023))
(synopsis "Resize active session displays")
(description
"The @command{x-resize} command detects active displays for all users\nand invokes @command{xrandr} to automatically update their resolution.\nCalled via udev, it can be used to implement dynamic resize support\nfor desktop environments that lack native support for it, such as\nXfce.")
(home-page
"https://gitlab.com/Apteryks/x-resize")
(license gpl3+)
(dependencies
`(("coreutils" ,coreutils)
("guile-lib" ,guile-lib)
("xrandr" ,xrandr)))
(skip ())
(files (libraries ())
(tests ())
(programs
((directory "scripts" ((scheme-file "x-resize")))))
(documentation
((symlink "README" "README.org")
(text-file "HACKING")
(text-file "COPYING")))
(infrastructure
((scheme-file "guix")
(text-file ".gitignore")
(scheme-file "hall")))))
The guix.scm generated from that looks like:
(use-modules
(guix packages)
((guix licenses) #:prefix license:)
(guix download)
(guix build-system gnu)
(gnu packages)
(gnu packages autotools)
(gnu packages guile)
(gnu packages guile-xyz)
(gnu packages pkg-config)
(gnu packages texinfo))
[...]
I needed to add the following modules to fix guix shell
:
modified guix.scm
@@ -5,10 +5,12 @@
(guix build-system gnu)
(gnu packages)
(gnu packages autotools)
+ (gnu packages base)
(gnu packages guile)
(gnu packages guile-xyz)
(gnu packages pkg-config)
- (gnu packages texinfo))
+ (gnu packages texinfo)
+ (gnu packages xorg))
It'd be nice if this was handled automatically.