diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2013-01-17 23:53:29 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2013-01-18 00:48:07 +0100 |
| commit | 08ba7ff318720d926215de83daed0da628908ca3 (patch) | |
| tree | 4afb6b610bfdc337a0b778c58ad38b1fe10e28f8 /HACKING | |
| parent | 4fd27cdfb993ff71b4d9eb392571beb992ea16e3 (diff) | |
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-- | HACKING | 20 |
1 files changed, 17 insertions, 3 deletions
| @@ -1,6 +1,6 @@ | |||
| 1 | -*- mode: org; coding: utf-8; -*- | 1 | -*- mode: org; coding: utf-8; -*- |
| 2 | 2 | ||
| 3 | #+TITLE: Hacking GNU Guix and its incredible distro | 3 | #+TITLE: Hacking GNU Guix and Its Incredible Distro |
| 4 | 4 | ||
| 5 | Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org> | 5 | Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org> |
| 6 | 6 | ||
| @@ -9,6 +9,20 @@ Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org> | |||
| 9 | notice and this notice are preserved. | 9 | notice and this notice are preserved. |
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | * Running Guix before it is installed | ||
| 13 | |||
| 14 | Command-line tools can be used even if you have not run "make install". | ||
| 15 | To do that, prefix each command with ‘./pre-inst-env’, as in: | ||
| 16 | |||
| 17 | ./pre-inst-env guix-build --help | ||
| 18 | |||
| 19 | Similarly, for a Guile session using the Guix modules: | ||
| 20 | |||
| 21 | ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))' | ||
| 22 | |||
| 23 | The ‘pre-inst-env’ script sets up all the environment variables | ||
| 24 | necessary to support this. | ||
| 25 | |||
| 12 | * Adding new packages | 26 | * Adding new packages |
| 13 | 27 | ||
| 14 | Package recipes in Guix look like this: | 28 | Package recipes in Guix look like this: |
| @@ -26,14 +40,14 @@ Package recipes in Guix look like this: | |||
| 26 | (base32 | 40 | (base32 |
| 27 | "0wicr7amx01l03rm0pzgr1qvw3f9blaw17vjsy1301dh13ll58aa")))) | 41 | "0wicr7amx01l03rm0pzgr1qvw3f9blaw17vjsy1301dh13ll58aa")))) |
| 28 | (build-system gnu-build-system) | 42 | (build-system gnu-build-system) |
| 29 | (inputs `(("gnum4" ,gnum4))) | 43 | (inputs `(("m4" ,m4))) |
| 30 | (propagated-inputs `(("gmp" ,gmp))) | 44 | (propagated-inputs `(("gmp" ,gmp))) |
| 31 | (home-page | 45 | (home-page |
| 32 | "http://www.lysator.liu.se/~nisse/nettle/") | 46 | "http://www.lysator.liu.se/~nisse/nettle/") |
| 33 | (synopsis "GNU Nettle, a cryptographic library") | 47 | (synopsis "GNU Nettle, a cryptographic library") |
| 34 | (description | 48 | (description |
| 35 | "Nettle is a cryptographic library...") | 49 | "Nettle is a cryptographic library...") |
| 36 | (license "GPLv2+")) | 50 | (license gpl2+)) |
| 37 | #+END_SRC | 51 | #+END_SRC |
| 38 | 52 | ||
| 39 | Such a recipe can be written by hand, and then tested by running | 53 | Such a recipe can be written by hand, and then tested by running |
