distro: automake: Update to 1.12.6.
[jackhill/guix/guix.git] / TODO
1 -*- mode: org; coding: utf-8; -*-
2
3 Copyright © 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
11 Guix uses Nix’s daemon (‘nix-worker’, later renamed to ‘nix-daemon’) to
12 actually perform builds, scheduling, substitution of pre-built binaries,
13 and GC-related tasks. The daemon mainly uses ‘libstore’ from Nix.
14 Integrating it in Guix itself will make Guix self-contained, thereby
15 simplifying our users’ lives.
16
17 ** Remove dependency on OpenSSL
18
19 The ‘openssl’ command-line tool is used in libstore to sign store paths
20 to be exported, and to check such signatures. The signing keys are
21 usually in /etc/nix/signing-key.{pub,sec}. They are a PKCS#8-encoded
22 X.509 SubjectPublicKeyInfo. These can be decoded with the [[http://lists.gnu.org/archive/html/help-gnutls/2012-12/msg00012.html][C API of
23 GnuTLS]], but not yet with its Guile bindings. There’s also
24 ‘gnutls_privkey_sign_data’ to sign, and related functions.
25
26 * infrastructure
27
28 ** have a Hydra instance build Guix packages
29
30 [[http://nixos.org/hydra/][Hydra]] is a continuous integration tool based on Nix. It now has
31 [[https://github.com/NixOS/hydra/commit/f27ae1d5663680400cb99cfb898970f34d8d21be][Guile/Guix support]], which allows “build recipes” written in Guile using
32 Guix to be used directly on Hydra.
33
34 For a start, we may use the instance at hydra.nixos.org, generously
35 provided by TU Delft. However, in the future, we may want to setup our
36 own instance at gnu.org.
37
38 * extend <origin>
39 ** add OpenPGP signatures:
40
41 (origin
42 (method http-fetch)
43 (uri "http://.../foo.tgz")
44 (signature-uri (string-append uri ".sig"))
45 (signer-openpgp-fingerprint "..."))
46
47 ** allow <origin> to be a derivation/package or a file
48
49 * extend <package>
50
51 ** add support for ‘search-paths’
52
53 This should be passed to the build system, to extend package-specific
54 search path environment variables–like ‘GUILE_LOAD_PATH’, ‘PERL5LIB’,
55 etc.
56
57 ** add a ‘user-environment-hook’
58
59 This should specify builder code to be run when building a user
60 environment with ‘guix-package’. For instance, Texinfo’s hook would
61 create a new ‘dir’.
62
63 ** add ‘patches’ there
64
65 ** extend ‘propagated-build-inputs’ with support for multiple outputs
66
67 #+BEGIN_SRC scheme
68 (outputs '("out" "include"))
69 (propagated-build-inputs
70 `(((("i1" ,p1 "o1")
71 ("i2" ,p2))
72 => "include")
73 ("i3" ,p3)))
74 #+END_SRC
75
76 * support cross-compilation
77
78 Implement ‘package-cross-derivation’, and add the corresponding code in
79 ‘gnu-build-system’. Then, actually bootstrap a cross-compilation
80 environment–e.g., a cross-GNU environment.
81
82 * gnu-build-system: produce a ‘debug’ derivation
83
84 Set a .gnu_debuglink in the main derivations to point to the sibling
85 file name (only the basename, to not retain a dependency on the ‘debug’
86 derivation.)
87
88 For /nix/store/xyz-foobar/bin/foo, we should have
89 /nix/store/abc-foobar-debug/lib/nix/store/xyz-foobar/bin/foo.debug (info
90 "(gdb) Separate Debug Files").
91
92 Users should have a default GDB setting with ~/.guix-profile/lib/debug
93 as their ‘debug-file-directory’.
94
95 * build-expression->derivation: define `%system' in the builder
96
97 Would allow build expressions to have system-dependent code, like
98 `glibc-dynamic-linker'.
99
100 * add ‘allowed-references’ in <package>
101
102 [[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]].
103
104
105 * union
106
107 Support sophisticated collision handling when building a union: check
108 whether the colliding files are identical, honor per-package priorities,
109 etc.
110
111 * guix-package
112
113 ** add ‘--roll-back’
114 ** add ‘--list-generations’, and ‘--delete-generations’
115 ** add ‘--upgrade’
116 ** add ‘--search’
117
118 * guix build utils
119 ** Add equivalent to "rm -rf"
120 ** Add equivalent to Nixpkgs's ‘wrapProgram’
121 ** Add equivalent to chrpath, possibly using [[https://gitorious.org/guile-dlhacks/guile-dlhacks/][guile-dlhacks]]
122
123 * distro
124 ** choose a name! (Jinn?)
125 ** port to new GNU/Linux platforms, notably ‘mipsel64-linux’
126 ** port to GNU/Hurd, aka. ‘i686-gnu’
127
128 Problems include that current glibc releases do not build on GNU/Hurd.
129 In addition, there haven’t been stable releases of GNU Mach, MiG, and
130 Hurd, which would be a pre-condition.
131
132 ** make a bootable GNU/Linux-Libre distro, with OS configuration EDSL
133
134 Similar in spirit to /etc/nixos/configuration.nix.