unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Thompson, David" <dthompson2@worcester.edu>
To: Carlos Carleos <carleos@uniovi.es>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: installing a modified package
Date: Tue, 23 Sep 2014 13:40:01 -0400	[thread overview]
Message-ID: <CAJ=Rwfbg1Wo4QNX8P0iB8qOeqvEkacftCUuOQb6tSezQorS0RQ@mail.gmail.com> (raw)
In-Reply-To: <84sijifffn.fsf@carleos.epv.uniovi.es>

2014-09-23 12:51 GMT-04:00 Carlos Carleos <carleos@uniovi.es>:
>
> Hi!
>
> I know I should be RTFM carefully, but...
>
> In Debian, I can follow these steps to customize a package (more or less):
>
> 1. # apt-get build-dep PACKAGE
>
> 2. $ apt-get source PACKAGE
>
> 3. $ cd PACKAGE-...; ...tweak...; dpkg-buildpackage...
>
> 4. # dpkg -i PACKAGE.deb
>
> What would be the similar sequence for GUIX?  Thank you very much.
>

Since packages are Scheme expressions, you can simpley create a new
package object that inherits from the package you want to modify.

Untested code below:

    (use-modules (guix packages) (gnu packages emacs))

    (package (inherit emacs)  ...)

To install, I believe you need to use something like:

    guix package -e '(load "my-custom-emacs.scm")'

Where my-custom-emacs.scm is a file that contains the code above.
Having the 'package' form at the end of the file makes it the return
value of 'load'.

I'm writing this hastily, but I hope this helps.

- Dave

  parent reply	other threads:[~2014-09-23 17:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-23 16:51 installing a modified package Carlos Carleos
2014-09-23 17:25 ` Jason Self
2014-09-23 17:40 ` Thompson, David [this message]
2014-09-24 12:14   ` Overlays, custom package modules Ludovic Courtès
2014-09-24  5:48 ` installing a modified package Mark H Weaver

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='CAJ=Rwfbg1Wo4QNX8P0iB8qOeqvEkacftCUuOQb6tSezQorS0RQ@mail.gmail.com' \
    --to=dthompson2@worcester.edu \
    --cc=carleos@uniovi.es \
    --cc=guix-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).