From: zimoun <zimon.toutoune@gmail.com>
To: calcium <calcium@disroot.org>, help-guix@gnu.org
Subject: Re: Create package to add new files
Date: Thu, 18 Aug 2022 16:19:55 +0200 [thread overview]
Message-ID: <86k075bpmc.fsf@gmail.com> (raw)
In-Reply-To: <03f9e00e-3eb8-d6f3-ea71-7ff49a2126c3@disroot.org>
Hi,
On Mon, 27 Jun 2022 at 22:22, calcium via <help-guix@gnu.org> wrote:
> I tried using the procedures text-file* and plain-file but I can't
> manage to make it works.
Well, I am not sure it is what you are looking for. There are from
G-expressions [1] when you probably just want install some files.
1: <https://guix.gnu.org/manual/devel/en/guix.html#G_002dExpressions>
> (replace
> 'install
> (lambda* (#:key outputs #:allow-other-keys)
> ;; The package's Makefile doesn't provide an "install"
> ;; rule so do it by ourselves.
> (let ((filter-dir
> (string-append (assoc-ref outputs "out")
> "/lib/cups/filter"))
> (ppd-dir
> (string-append (assoc-ref outputs "out")
> "/share/ppd/cupsfilters")))
> ;; (install-file
> ;; (plain-file "brother_lpdwrapper_printer-model"
> ;; "ldwrapper string/content of file"))
For instance, instead of…
> ;; (install-file
> ;; (plain-file "brother-printer-model-cups-en.ppd"
> ;; ".ppd string/content of file")
> ;; ppd-dir)
> )
> #t)))))))
maybe this:
(install-file
"brother-printer-model-cups-en.ppd"
ppd-dir)
is what you would like. Is it?
Hope that helps,
simon
prev parent reply other threads:[~2022-08-18 14:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-27 20:22 Create package to add new files calcium via
2022-08-18 14:19 ` zimoun [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=86k075bpmc.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=calcium@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).