summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-01-17 23:53:29 +0100
committerLudovic Courtès <ludo@gnu.org>2013-01-18 00:48:07 +0100
commit08ba7ff318720d926215de83daed0da628908ca3 (patch)
tree4afb6b610bfdc337a0b778c58ad38b1fe10e28f8 /HACKING
parent4fd27cdfb993ff71b4d9eb392571beb992ea16e3 (diff)
downloadpatches-08ba7ff318720d926215de83daed0da628908ca3.tar
patches-08ba7ff318720d926215de83daed0da628908ca3.tar.gz
Update `HACKING'.
* HACKING: Capitalize the title. (Running Guix before it is installed): New section. (Adding new packages): Update example.
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING20
1 files changed, 17 insertions, 3 deletions
diff --git a/HACKING b/HACKING
index 79697a141c..c604af8404 100644
--- a/HACKING
+++ b/HACKING
@@ -1,6 +1,6 @@
-*- mode: org; coding: utf-8; -*-
-#+TITLE: Hacking GNU Guix and its incredible distro
+#+TITLE: Hacking GNU Guix and Its Incredible Distro
Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
@@ -9,6 +9,20 @@ Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
notice and this notice are preserved.
+* Running Guix before it is installed
+
+Command-line tools can be used even if you have not run "make install".
+To do that, prefix each command with ‘./pre-inst-env’, as in:
+
+ ./pre-inst-env guix-build --help
+
+Similarly, for a Guile session using the Guix modules:
+
+ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'
+
+The ‘pre-inst-env’ script sets up all the environment variables
+necessary to support this.
+
* Adding new packages
Package recipes in Guix look like this:
@@ -26,14 +40,14 @@ Package recipes in Guix look like this:
(base32
"0wicr7amx01l03rm0pzgr1qvw3f9blaw17vjsy1301dh13ll58aa"))))
(build-system gnu-build-system)
- (inputs `(("gnum4" ,gnum4)))
+ (inputs `(("m4" ,m4)))
(propagated-inputs `(("gmp" ,gmp)))
(home-page
"http://www.lysator.liu.se/~nisse/nettle/")
(synopsis "GNU Nettle, a cryptographic library")
(description
"Nettle is a cryptographic library...")
- (license "GPLv2+"))
+ (license gpl2+))
#+END_SRC
Such a recipe can be written by hand, and then tested by running