installing a modified package

2014-09-23 Thread Carlos Carleos

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.


-- 
 CARLOS CARLEOSKAROLO EL KARLEOJ 
 Secretario   Sekretario 
 Departamento de Estadística Departemento pri Statistiko 
 e Investigación Operativakaj Operaciesploro 
 y Didáctica de la Matemáticakaj Didaktiko de Matematiko 
 Universidad Oviedo  Universitato Oviedo 
 Principado de Asturias  Princlando Asturujo 
 Reino de España  Reĝlando Hispanujo 
 Teléfono: 73353   SMS: +34 66 004 66 05 

_
El cibercorreo no es SMS: dispone de   |Retpoŝto malsamas ol SMS:
   - espacio suficiente| - sufiĉas spaco 
   - comodidades adecuadas | - taŭgas komfortaĵoj
para expresarse correctamente. |por ĝuste sin esprimi.   



Re: installing a modified package

2014-09-23 Thread Jason Self
Carlos Carleos asked:
 What would be the similar sequence for GUIX?

Edit the package definition as appropriate to accomplish what you need
to do? Make a new package definition that uses the old one as an input
with whatever changes are needed? If the changes you're making would
be generally useful it might also be a good idea to share them so that
they can be included.


signature.asc
Description: PGP signature


Re: installing a modified package

2014-09-23 Thread Thompson, David
2014-09-23 12:51 GMT-04:00 Carlos Carleos carl...@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