summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-11-18 17:10:47 +0100
committerLudovic Courtès <ludo@gnu.org>2012-11-18 17:45:48 +0100
commit6b8875c838d637773813899b35a9b5ea4acfd146 (patch)
tree80b9b19ce6e17819065a684d167f8b01f970aed6
parentd38487e9ca0578d64ef4ec75bdc7b6f80643555a (diff)
doc: Add `TODO'.
* TODO: New file. * Makefile.am (EXTRA_DIST): Add it.
-rw-r--r--Makefile.am1
-rw-r--r--TODO113
2 files changed, 114 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 8b9c3ebaf59..22e18c0acb8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -164,6 +164,7 @@ AM_SH_LOG_FLAGS = -x -e
164 164
165EXTRA_DIST = \ 165EXTRA_DIST = \
166 HACKING \ 166 HACKING \
167 TODO \
167 .dir-locals.el \ 168 .dir-locals.el \
168 build-aux/download.scm \ 169 build-aux/download.scm \
169 srfi/srfi-64.scm \ 170 srfi/srfi-64.scm \
diff --git a/TODO b/TODO
new file mode 100644
index 00000000000..cecea9636f9
--- /dev/null
+++ b/TODO
@@ -0,0 +1,113 @@
1-*- mode: org; coding: utf-8; -*-
2
3Copyright © 2012 Ludovic Courtès <ludo@gnu.org>
4
5 Copying and distribution of this file, with or without modification,
6 are permitted in any medium without royalty provided the copyright
7 notice and this notice are preserved.
8
9* integrate needed Nix code
10
11Guix uses Nix’s daemon (‘nix-worker’, later renamed to ‘nix-daemon’) to
12actually perform builds, scheduling, substitution of pre-built binaries,
13and GC-related tasks. The daemon mainly uses ‘libstore’ from Nix.
14Integrating it in Guix itself will make Guix self-contained, thereby
15simplifying our users’ lives.
16
17* infrastructure
18
19** have a Hydra instance build Guix packages
20
21[[http://nixos.org/hydra/][Hydra]] is a continuous integration tool based on Nix. It now has
22[[https://github.com/NixOS/hydra/commit/f27ae1d5663680400cb99cfb898970f34d8d21be][Guile/Guix support]], which allows “build recipes” written in Guile using
23Guix to be used directly on Hydra.
24
25For a start, we may use the instance at hydra.nixos.org, generously
26provided by TU Delft. However, in the future, we may want to setup our
27own instance at gnu.org.
28
29* extend <origin>
30** add OpenPGP signatures:
31
32 (origin
33 (method http-fetch)
34 (uri "http://.../foo.tgz")
35 (signature-uri (string-append uri ".sig"))
36 (signer-openpgp-fingerprint "..."))
37
38** allow <origin> to be a derivation/package or a file
39
40* extend <package>
41
42** add support for ‘search-paths’
43
44This should be passed to the build system, to extend package-specific
45search path environment variables–like ‘GUILE_LOAD_PATH’, ‘PERL5LIB’,
46etc.
47
48** add a ‘user-environment-hook’
49
50This should specify builder code to be run when building a user
51environment with ‘guix-package’. For instance, Texinfo’s hook would
52create a new ‘dir’.
53
54* support cross-compilation
55
56Implement ‘package-cross-derivation’, and add the corresponding code in
57‘gnu-build-system’. Then, actually bootstrap a cross-compilation
58environment–e.g., a cross-GNU environment.
59
60* gnu-build-system: produce a ‘debug’ derivation
61
62Set a .gnu_debuglink in the main derivations to point to the sibling
63file name (only the basename, to not retain a dependency on the ‘debug’
64derivation.)
65
66For /nix/store/xyz-foobar/bin/foo, we should have
67/nix/store/abc-foobar-debug/lib/nix/store/xyz-foobar/bin/foo.debug (info
68"(gdb) Separate Debug Files").
69
70Users should have a default GDB setting with ~/.guix-profile/lib/debug
71as their ‘debug-file-directory’.
72
73* build-expression->derivation: define `%system' in the builder
74
75Would allow build expressions to have system-dependent code, like
76`glibc-dynamic-linker'.
77
78* add ‘allowed-references’ in <package>
79
80[[file:~/src/nix/src/libstore/build.cc::if%20(drv.env.find("allowedReferences")%20!%3D%20drv.env.end())%20{][See how Nix implements that internally]].
81
82
83* union
84
85Support sophisticated collision handling when building a union: check
86whether the colliding files are identical, honor per-package priorities,
87etc.
88
89* guix-package
90
91** add ‘--roll-back’
92** add ‘--list-generations’, and ‘--delete-generations’
93** add ‘--upgrade’
94** add ‘--list-installed’ and ‘--list-available’
95** add ‘--search’
96
97* guix build utils
98** Add equivalent to "rm -rf"
99** Add equivalent to Nixpkgs's ‘wrapProgram’
100** Add equivalent to chrpath, possibly using [[https://gitorious.org/guile-dlhacks/guile-dlhacks/][guile-dlhacks]]
101
102* distro
103** choose a name! (Jinn?)
104** port to new GNU/Linux platforms, notably ‘mipsel64-linux’
105** port to GNU/Hurd, aka. ‘i686-gnu’
106
107Problems include that current glibc releases do not build on GNU/Hurd.
108In addition, there haven’t been stable releases of GNU Mach, MiG, and
109Hurd, which would be a pre-condition.
110
111** make a bootable GNU/Linux-Libre distro, with OS configuration EDSL
112
113Similar in spirit to /etc/nixos/configuration.nix.