vm: Add #:memory-size parameter for 'expression->derivation-in-linux-vm'.
[jackhill/guix/guix.git] / TODO
CommitLineData
6b8875c8
LC
1-*- mode: org; coding: utf-8; -*-
2
8c247e1c
LC
3#+TITLE: What's left to do?
4#+STARTUP: content hidestars
5
c0b3c89f 6Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
6b8875c8
LC
7
8 Copying and distribution of this file, with or without modification,
9 are permitted in any medium without royalty provided the copyright
10 notice and this notice are preserved.
11
12* integrate needed Nix code
13
5d388c7c 14** MAYBE Add a substituter that uses the GNUnet DHT or [[http://libswift.org][libswift]]
c7e4a72a 15
5d388c7c
LC
16Would be neat if binaries could be pushed to and pulled from the GNUnet DHT or
17rather libswift (since DHTs aren’t suited for large payloads). Guix users
18would sign their binaries, and define which binaries they trust.
19
20Use UPnP and similar to traverse NAT, like ‘filegive’ does.
c7e4a72a 21
c0b3c89f
LC
22** Add a remote build hook
23
24Like scripts/build-remote.pl in Nix.
25
d6b5e4bb
LC
26* Add `guix publish' to publish the store using Guile's web server
27
28Generate narinfos and nars on the fly, upon HTTP GET requests.
29Ideally, extend .nix-cache-info to include the server's public key, and also
30reply to requests for .narinfo.sig.
31Optionally, use Guile-Avahi to publish the service.
32
c7e4a72a
LC
33* user interface
34** Add a package.el (Emacs) back-end
35
3e5980de
LC
36package.el is quite monolithic, but we may be able to reuse/extend
37‘package-menu-mode’ or at least ‘tabulated-list-mode’.
38
39** add guile-ncurses interface
c7e4a72a 40
6b8875c8
LC
41* extend <package>
42
499b8d1f
LC
43** add ‘recommends’ field
44
45For instance, glibc, binutils, gcc, and ld-wrapper would recommend each other.
46‘guix package -i’ could ask interactively (?), or allow users to follow all or
47none of the recommendations.
48
6b8875c8
LC
49** add a ‘user-environment-hook’
50
51This should specify builder code to be run when building a user
52environment with ‘guix-package’. For instance, Texinfo’s hook would
53create a new ‘dir’.
54
3036a01f
LC
55** extend ‘propagated-build-inputs’ with support for multiple outputs
56
57#+BEGIN_SRC scheme
58 (outputs '("out" "include"))
59 (propagated-build-inputs
60 `(((("i1" ,p1 "o1")
61 ("i2" ,p2))
62 => "include")
63 ("i3" ,p3)))
64#+END_SRC
65
971cb56d 66* MAYBE use HOP-like escapes to refer to inputs in build-side code
3e5980de 67
971cb56d
LC
68Instead of doing things like:
69
70#+BEGIN_SRC scheme
71 (inputs `(("foo" ,foo)))
72 (arguments '(#:configure-flags
73 (list (string-append "--with-foo="
74 (assoc-ref %build-inputs "foo")))))
75#+END_SRC
76
77Allow things like:
78
79#+BEGIN_SRC scheme
80 (inputs (list foo))
81 (arguments ~(#:configure-flags
82 (list (string-append "--with-foo=" $foo))))
83
84#+END_SRC
85
86... where '~' is 'build-quote' and '$' is 'build-unquote'. Better yet,
87automatically compute the list of references of an expression passed to
88'derivation-expression'.
89
90Use a [[http://dorophone.blogspot.fr/2011/09/scheme-syntax-is-monad.html][monad]] for the syntax.
91
92* synchronize non-GNU package descriptions with the [[http://directory.fsf.org][FSD]]
29767aae
LC
93
94Meta-data for GNU packages, including descriptions and synopses, can be
95dumped from the FSD:
96http://directory.fsf.org/wiki?title=GNU/Export&action=purge .
97We could periodically synchronize with that.
98
c7e4a72a
LC
99* add a guildhall build system
100
101The Guildhall is Guile’s packaging system. It should be easy to add a
102‘guildhall-build-system’ that does the right thing based on guildhall
103recipes.
104
6b8875c8
LC
105* add ‘allowed-references’ in <package>
106
107[[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]].
108
6b8875c8
LC
109* union
110
111Support sophisticated collision handling when building a union: check
112whether the colliding files are identical, honor per-package priorities,
113etc.
114
3dfd7cef
LC
115* add GUIX_ALLOW_EXPENSIVE_TESTS
116
117Tests that need to download stuff or otherwise take a long time would only be
118run when that is defined.
119
290d4370
LC
120* add "guix challenge"
121
122Would download a substitute, and compare its contents against a (hopefully
123locally-built) copy.
124
6b8875c8
LC
125
126* guix build utils
29767aae
LC
127** MAYBE Change ‘ld-wrapper’ to add RPATH for libs passed by file name
128
8c247e1c 129** MAYBE Add equivalent to chrpath that uses [[https://gitorious.org/guile-dlhacks/guile-dlhacks/][guile-dlhacks]]
6b8875c8 130
29767aae 131** MAYBE Add a hash-rewriting thing for deep dependency replacement without rebuild
c7e4a72a
LC
132
133See [[https://github.com/NixOS/nixpkgs/commit/d1662d715514e6ef9d3dc29f132f1b3d8e608a18][Shea Levy's `replace-dependency' in Nixpkgs]].
134
6b8875c8 135* distro
6b8875c8
LC
136** port to new GNU/Linux platforms, notably ‘mipsel64-linux’
137** port to GNU/Hurd, aka. ‘i686-gnu’
138
139Problems include that current glibc releases do not build on GNU/Hurd.
140In addition, there haven’t been stable releases of GNU Mach, MiG, and
141Hurd, which would be a pre-condition.
142
143** make a bootable GNU/Linux-Libre distro, with OS configuration EDSL
144
145Similar in spirit to /etc/nixos/configuration.nix.