From: "Daniel Meißner" <daniel.meissner-i4k@ruhr-uni-bochum.de>
To: yann <yann@moeris.xyz>
Cc: help-guix@gnu.org
Subject: Re: packaging problem
Date: Thu, 31 Mar 2022 09:51:33 +0200 [thread overview]
Message-ID: <87a6d6impm.fsf@ruhr-uni-bochum.de> (raw)
In-Reply-To: <c71eb98b598fa4448f935a21717ffdaca3ea32cf.camel@moeris.xyz> (yann@moeris.xyz's message of "Wed, 30 Mar 2022 15:10:29 +0200")
Hi,
yann <yann@moeris.xyz> writes:
> Then I tried to run it by putting myself in the directory and running:
>
> guix shell -f gnome-shell-extension-desktop-icon-ng.scm
Looks like your file gnome-shell-extension-desktop-icon-ng.scm does not
return a package object. You have to add
‘gnome-shell-extension-desktop-icon-ng’ at the end of the file because
the -f switch expects the file to evaluate to a package object.
Some more remarks: IIUC, since you define the module (my-module) in the
file, you can also name my my-module.scm. Then you could do
guix shell -L /path/to/dir gnome-shell-extension-desktop-icon-ng
without the ‘-f’ switch where /path/to/dir is the path to the directory
where my-module.scm lives. Then you don’t need to put
gnome-shell-extension-desktop-icon-ng at the end of the file.
You should consider using the newer gexp-style for the arguments field
and drop the #t at the end of the phases (no longer necessary), like so:
--8<---------------cut here---------------start------------->8---
(arguments (list #:tests? #f
#:make-flags
#~(list (string-append "EXTENSIONS_DIR="
#$output
"/share/gnome-shell/extensions"))
#:phases
#~(modify-phases %standard-phases
(delete 'configure) ; no configure script
(replace 'install
(lambda _
(let ((pre "/share/gnome-shell/extensions/")
(dir "ding@rastersoft.com"))
(copy-recursively dir (string-append #$output pre dir))))))))
--8<---------------cut here---------------end--------------->8---
Best
--
Daniel
prev parent reply other threads:[~2022-03-31 7:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-30 13:10 packaging problem yann
2022-03-31 7:51 ` Daniel Meißner [this message]
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=87a6d6impm.fsf@ruhr-uni-bochum.de \
--to=daniel.meissner-i4k@ruhr-uni-bochum.de \
--cc=help-guix@gnu.org \
--cc=yann@moeris.xyz \
/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).