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