| 1 | -*- mode: org; coding: utf-8; -*- |
| 2 | |
| 3 | #+TITLE: What's left to do? |
| 4 | #+STARTUP: content hidestars |
| 5 | |
| 6 | Copyright © 2012, 2013 Ludovic Courtès <[email protected]> |
| 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 | |
| 14 | ** MAYBE Add a substituter that uses the GNUnet DHT or [[http://libswift.org][libswift]] |
| 15 | |
| 16 | Would be neat if binaries could be pushed to and pulled from the GNUnet DHT or |
| 17 | rather libswift (since DHTs aren’t suited for large payloads). Guix users |
| 18 | would sign their binaries, and define which binaries they trust. |
| 19 | |
| 20 | Use UPnP and similar to traverse NAT, like ‘filegive’ does. |
| 21 | |
| 22 | ** Add a remote build hook |
| 23 | |
| 24 | Like scripts/build-remote.pl in Nix. |
| 25 | |
| 26 | * Add `guix publish' to publish the store using Guile's web server |
| 27 | |
| 28 | Generate narinfos and nars on the fly, upon HTTP GET requests. |
| 29 | Ideally, extend .nix-cache-info to include the server's public key, and also |
| 30 | reply to requests for .narinfo.sig. |
| 31 | Optionally, use Guile-Avahi to publish the service. |
| 32 | |
| 33 | * user interface |
| 34 | ** Add a package.el (Emacs) back-end |
| 35 | |
| 36 | package.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 |
| 40 | |
| 41 | * extend <package> |
| 42 | |
| 43 | ** add ‘recommends’ field |
| 44 | |
| 45 | For 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 |
| 47 | none of the recommendations. |
| 48 | |
| 49 | ** add a ‘user-environment-hook’ |
| 50 | |
| 51 | This should specify builder code to be run when building a user |
| 52 | environment with ‘guix-package’. For instance, Texinfo’s hook would |
| 53 | create a new ‘dir’. |
| 54 | |
| 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 | |
| 66 | * synchronize non-GNU package descriptions with the [[http://directory.fsf.org][FSD]] |
| 67 | |
| 68 | Meta-data for GNU packages, including descriptions and synopses, can be |
| 69 | dumped from the FSD: |
| 70 | http://directory.fsf.org/wiki?title=GNU/Export&action=purge . |
| 71 | We could periodically synchronize with that. |
| 72 | |
| 73 | * add a guildhall build system |
| 74 | |
| 75 | The Guildhall is Guile’s packaging system. It should be easy to add a |
| 76 | ‘guildhall-build-system’ that does the right thing based on guildhall |
| 77 | recipes. |
| 78 | |
| 79 | * add ‘allowed-references’ in <package> |
| 80 | |
| 81 | [[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]]. |
| 82 | |
| 83 | * union |
| 84 | |
| 85 | Support sophisticated collision handling when building a union: check |
| 86 | whether the colliding files are identical, honor per-package priorities, |
| 87 | etc. |
| 88 | |
| 89 | * add GUIX_ALLOW_EXPENSIVE_TESTS |
| 90 | |
| 91 | Tests that need to download stuff or otherwise take a long time would only be |
| 92 | run when that is defined. |
| 93 | |
| 94 | * add "guix challenge" |
| 95 | |
| 96 | Would download a substitute, and compare its contents against a (hopefully |
| 97 | locally-built) copy. |
| 98 | |
| 99 | |
| 100 | * guix build utils |
| 101 | ** MAYBE Change ‘ld-wrapper’ to add RPATH for libs passed by file name |
| 102 | |
| 103 | ** MAYBE Add equivalent to chrpath that uses [[https://gitorious.org/guile-dlhacks/guile-dlhacks/][guile-dlhacks]] |
| 104 | |
| 105 | ** MAYBE Add a hash-rewriting thing for deep dependency replacement without rebuild |
| 106 | |
| 107 | See [[https://github.com/NixOS/nixpkgs/commit/d1662d715514e6ef9d3dc29f132f1b3d8e608a18][Shea Levy's `replace-dependency' in Nixpkgs]]. |
| 108 | |
| 109 | * distro |
| 110 | ** port to new GNU/Linux platforms, notably ‘mipsel64-linux’ |
| 111 | ** port to GNU/Hurd, aka. ‘i686-gnu’ |
| 112 | |
| 113 | Problems include that current glibc releases do not build on GNU/Hurd. |
| 114 | In addition, there haven’t been stable releases of GNU Mach, MiG, and |
| 115 | Hurd, which would be a pre-condition. |
| 116 | |
| 117 | ** make a bootable GNU/Linux-Libre distro, with OS configuration EDSL |
| 118 | |
| 119 | Similar in spirit to /etc/nixos/configuration.nix. |