guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: installing a modified package


From: Thompson, David
Subject: Re: installing a modified package
Date: Tue, 23 Sep 2014 13:40:01 -0400

2014-09-23 12:51 GMT-04:00 Carlos Carleos <address@hidden>:
>
> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]