unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Gary Johnson <lambdatronic@disroot.org>
To: help-guix <help-guix@gnu.org>
Subject: Broken emacs-treemacs package in current Guix
Date: Mon, 02 Nov 2020 17:58:51 -0500	[thread overview]
Message-ID: <87lffjgyc4.fsf@disroot.org> (raw)

Hi Guix,

I recently moved my Emacs package management from ELPA to Guix, and
after creating quite a few additional package declarations using the
amazing "guix import elpa" command, I now have a working system that
doesn't have any packages installed through ELPA. Pretty cool stuff.

However, one package is sadly failing to build on my current
installation of Guix: emacs-treemacs

If I try to build the emacs-treemacs package that comes with Guix
(declared in emacs-xyz.scm), this crashes out due to a failing test
during its "make test" phase.

As an alternative, I tried creating a new emacs-treemacs-melpa package
with "guix import elpa". Here's the resulting code once I added in the
necessary module imports:

;;======================================================================================================================

(define-module (my-packages emacs-packages)
  #:use-module ((guix packages)           #:select (package origin base32))
  #:use-module ((guix download)           #:select (url-fetch))
  #:use-module ((guix build-system emacs) #:select (emacs-build-system))
  #:use-module ((gnu packages emacs-xyz)  #:select (emacs-dash
                                                    emacs-s
                                                    emacs-f
                                                    emacs-ace-window
                                                    emacs-pfuture
                                                    emacs-hydra
                                                    emacs-ht)))

(define-public emacs-treemacs-melpa
  (package
   (name "emacs-treemacs-melpa")
   (version "20201026.2006")
   (source
    (origin
     (method url-fetch)
     (uri (string-append
           "https://melpa.org/packages/treemacs-"
           version
           ".tar"))
     (sha256
      (base32
       "10dlxizx3nhviz5sfbfavsfglpwschkl3z3wwryw8930bp0swh5h"))))
   (build-system emacs-build-system)
   (propagated-inputs
    `(("emacs-dash" ,emacs-dash)
      ("emacs-s" ,emacs-s)
      ("emacs-f" ,emacs-f)
      ("emacs-ace-window" ,emacs-ace-window)
      ("emacs-pfuture" ,emacs-pfuture)
      ("emacs-hydra" ,emacs-hydra)
      ("emacs-ht" ,emacs-ht)))
   (home-page
    "https://github.com/Alexander-Miller/treemacs")
   (synopsis "A tree style file explorer package")
   (description
    "A powerful and flexible file tree project explorer.")
   (license #f)))

;;======================================================================================================================

This package successfully compiles and installs with "guix package -i".

However, when I open treemacs, none of its icons are available, and my
*Messages* buffer is filled with these error messages:

;;======================================================================================================================

Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/vsc/root-closed.png’ [47 times]
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/vsc/dir-closed.png’ [7 times]
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/js.png’
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/vsc/npm.png’ [2 times]
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/txt.png’ [2 times]
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/vsc/org.png’
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/vsc/license.png’
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/txt.png’
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/git.png’ [2 times]
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/js.png’
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/vsc/root-closed.png’ [11 times]
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/vsc/dir-closed.png’ [7 times]
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/js.png’
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/vsc/npm.png’ [2 times]
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/txt.png’ [2 times]
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/vsc/org.png’
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/vsc/license.png’
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/txt.png’
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/git.png’ [2 times]
Cannot find image file ‘/home/gjohnson/.guix-profile/share/emacs/site-lisp/icons/default/js.png’

;;======================================================================================================================

I can see in the stock emacs-treemacs package that some code has been
added to move its icon files around, but since it doesn't build for me,
that doesn't help me much at the moment.

I'm hoping one of the Guix package maintainers can fix the
emacs-treemacs package and let us know when a working version is
available via "guix pull".

Thanks in advance,
  Gary

-- 
GPG Key ID: 7BC158ED
Use `gpg --search-keys lambdatronic' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


             reply	other threads:[~2020-11-02 22:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-02 22:58 Gary Johnson [this message]
2020-11-08 20:35 ` Broken emacs-treemacs package in current Guix Nicolas Goaziou
2020-11-09 23:48   ` Gary Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lffjgyc4.fsf@disroot.org \
    --to=lambdatronic@disroot.org \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).