Re:Typing Nix
by jancsika on Friday June 23, 2017 @06:47PM
(#14623343)
Is it possible to write a guix package that includes code which redefines the package object?
[ Parent
| on HN ]
Yes!
http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/...
You'll see here that the package emacs-minimal actually inherits from the emacs package definition, and then all fields afterwards are essentially overwrites of whatever was in the emacs package.
Unfortunately, I just noticed that the manual alludes to this, but actually never explicitly documents it in the "Defining Packages" section :/