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