From: Marius Bakke <mbakke@fastmail.com>
To: Jone <yeger9@gmail.com>, help-guix <help-guix@gnu.org>
Subject: Re: How to replace package in system configuration?
Date: Wed, 04 Jul 2018 16:53:02 +0200 [thread overview]
Message-ID: <878t6r833l.fsf@fastmail.com> (raw)
In-Reply-To: <CAH6o9V8VAKriBem7=P+t__PFbM0-bkC+E3ix-Wih2wWdDntR_Q@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1228 bytes --]
Jone <yeger9@gmail.com> writes:
> Hello. My question briefly: I want to get a compact base system, but can
> not do this by of the dependencies.
>
> Now for more details: during reconfigure installed a package A. A depend of
> B, B depend of C,
> C depend of D, .. and all of them I don't need.
> Removing package А will probably require a lot of work, but I can change
> the dependencies of the package
> and rebuild A at next reconfigure. But how to specify it in
> system_configuration.scm?
>
> Such variant:
>
> (define-public PKG-A
> (package (inherit PKG-A))
> (name ...
> (version ...
> (arguments
> #:tests? #f
> #:configure-flags LIST-OF-CHANGED-CONFIGURE-OPTIONS
> ...
>
> - probably is wrong? Then maybe so:
>
> (define B
> (package (inherit PKG-A))
> ...
> (define-public B)
>
> In my case, the unfortunate chain of dependencies is:
> mariadb <- qtbase <- qtsvg <- python-pyqt <- hplip <- sane-backends <-
> colord
> and colord supports "--disable-sane" flag.
Hello!
The 'colord' service allows you to pass a custom package to be used
instead of the default. So you can do something along these lines:
[-- Attachment #1.2: config.scm --]
[-- Type: text/plain, Size: 498 bytes --]
(define-module (local packages)
#:use-module (guix packages)
#:use-module (gnu packages gnome))
(define-public colord-minimal
(package
(inherit colord)
(name "colord-minimal")
(inputs '()) ;look ma, no dependencies!
(arguments
`(#:configure-flags '("--disable-sane")))))
(use-modules (gnu)
(local packages))
(operating-system
[...]
(services (cons (colord-service
#:colord colord-minimal)
%base-services)))
[-- Attachment #1.3: Type: text/plain, Size: 71 bytes --]
Note: I haven't tested this, but hopefully it should give an idea :-)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2018-07-04 14:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-04 13:21 How to replace package in system configuration? Jone
2018-07-04 14:53 ` Marius Bakke [this message]
2018-07-04 16:26 ` Jone
2018-07-04 19:53 ` Jone
2018-07-09 12:17 ` Ludovic Courtès
2018-08-20 1:34 ` Maxim Cournoyer
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878t6r833l.fsf@fastmail.com \
--to=mbakke@fastmail.com \
--cc=help-guix@gnu.org \
--cc=yeger9@gmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.