build: Update skip count in `tests/derivations.scm'.
[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 * 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
23 Guix to be used directly on Hydra.
24
25 For a start, we may use the instance at hydra.nixos.org, generously
26 provided by TU Delft. However, in the future, we may want to setup our
27 own 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
44 This should be passed to the build system, to extend package-specific
45 search path environment variables–like ‘GUILE_LOAD_PATH’, ‘PERL5LIB’,
46 etc.
47
48 ** add a ‘user-environment-hook’
49
50 This should specify builder code to be run when building a user
51 environment with ‘guix-package’. For instance, Texinfo’s hook would
52 create a new ‘dir’.
53
54 ** add ‘patches’ there
55
56 ** extend ‘propagated-build-inputs’ with support for multiple outputs
57
58 #+BEGIN_SRC scheme
59 (outputs '("out" "include"))
60 (propagated-build-inputs
61 `(((("i1" ,p1 "o1")
62 ("i2" ,p2))
63 => "include")
64 ("i3" ,p3)))
65 #+END_SRC
66
67 * support cross-compilation
68
69 Implement ‘package-cross-derivation’, and add the corresponding code in
70 ‘gnu-build-system’. Then, actually bootstrap a cross-compilation
71 environment–e.g., a cross-GNU environment.
72
73 * gnu-build-system: produce a ‘debug’ derivation
74
75 Set a .gnu_debuglink in the main derivations to point to the sibling
76 file name (only the basename, to not retain a dependency on the ‘debug’
77 derivation.)
78
79 For /nix/store/xyz-foobar/bin/foo, we should have
80 /nix/store/abc-foobar-debug/lib/nix/store/xyz-foobar/bin/foo.debug (info
81 "(gdb) Separate Debug Files").
82
83 Users should have a default GDB setting with ~/.guix-profile/lib/debug
84 as their ‘debug-file-directory’.
85
86 * build-expression->derivation: define `%system' in the builder
87
88 Would allow build expressions to have system-dependent code, like
89 `glibc-dynamic-linker'.
90
91 * add ‘allowed-references’ in <package>
92
93 [[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]].
94
95
96 * union
97
98 Support sophisticated collision handling when building a union: check
99 whether the colliding files are identical, honor per-package priorities,
100 etc.
101
102 * guix-package
103
104 ** add ‘--roll-back’
105 ** add ‘--list-generations’, and ‘--delete-generations’
106 ** add ‘--upgrade’
107 ** add ‘--list-installed’ and ‘--list-available’
108 ** add ‘--search’
109
110 * guix build utils
111 ** Add equivalent to "rm -rf"
112 ** Add equivalent to Nixpkgs's ‘wrapProgram’
113 ** Add equivalent to chrpath, possibly using [[https://gitorious.org/guile-dlhacks/guile-dlhacks/][guile-dlhacks]]
114
115 * distro
116 ** choose a name! (Jinn?)
117 ** port to new GNU/Linux platforms, notably ‘mipsel64-linux’
118 ** port to GNU/Hurd, aka. ‘i686-gnu’
119
120 Problems include that current glibc releases do not build on GNU/Hurd.
121 In addition, there haven’t been stable releases of GNU Mach, MiG, and
122 Hurd, which would be a pre-condition.
123
124 ** make a bootable GNU/Linux-Libre distro, with OS configuration EDSL
125
126 Similar in spirit to /etc/nixos/configuration.nix.