;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017, 2018 Ricardo Wurmus ;;; Copyright © 2017 Corentin Bocquillon ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice ;;; Copyright © 2018 Fis Trivial ;;; Copyright © 2018 Tomáš Čech ;;; Copyright © 2018, 2020 Marius Bakke ;;; Copyright © 2018 Alex Vong ;;; Copyright © 2019, 2020 Brett Gilio ;;; Copyright © 2019 Jonathan Brielmaier ;;; Copyright © 2020 Liliana Marie Prikler ;;; Copyright © 2020 Yuval Kogman ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020 Efraim Flashner ;;; Copyright © 2021 qblade ;;; Copyright © 2021 Maxim Cournoyer ;
aboutsummaryrefslogtreecommitdiff
blob: 4d82884a5d42798cf10151629d6af63293bfdb37 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
-*- mode: org; coding: utf-8; -*-

#+TITLE: Tentative GNU Guix Road Map

Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>

  Copying and distribution of this file, with or without modification,
  are permitted in any medium without royalty provided the copyright
  notice and this notice are preserved.

The goals of the GNU Guix project are two-fold:

  - to build a purely functional package manager, based on Nix and
    Guile;

  - to use it to build a practical 100% free software distribution of
    GNU/Linux and possibly other GNU variants, with a focus on the
    promotion and tight integration of GNU components–the GNU system.

Since its inception, the project has gone a long way towards that goal.  Below
is a list of items we want for version "1.0" of the Guix System Distribution.
There will be a few 0.x releases by then to give the new features more
exposure and testing.

You're welcome to discuss this road map on guix-devel@gnu.org or #guix on
the Libera Chat IRC network!

* Features scheduled for 1.0

  - larger & more robust build farm
    + we need a powerful, dedicated front-end
    + armhf-linux build machine
    + leave Hydra in favor of 'guix publish' + custom code?
  - more OS features
    + LVM support
    + encrypted root
    + configurable name service switch
    + whole-system unit tests, using VMs
  - more service definitions
    + mcron, postfix(?), wicd(?), etc.
  - better 'guix system'
    + 'reconfigure' should be able to restart non-essential services
    + support for '--list-generations' and '--delete-generations'
  - better 'guix pull'
    + using Git to fetch the source instead of re-downloading everything
    + build more quickly
    + install new .mo files and new manual
    + authentication of the Guix source: use signed commits?
  - simplified, purely declarative service list in 'operating-system'
    + it should be possible to inspect the service instance declarations and
      settings
  - GUIs
    + integrate guix-web?
    + guile-ncurses installer?
  - 'guix publish'?

* Features for later

  - complete GNU/Hurd port
  - use content-based addressing when downloading substitutes to reduce
    bandwidth requirements
    + design nar v2 format where file contents are replaced by their hashes
    + leverage /gnu/store/.links
  - binary origin tracking
    + keep signatures in sqlite.db
    + preserve signatures upon import/export
  - peer-to-peer distribution of updates (GNUnet?)
  - more deterministic builds
    + identify & fix sources of non-determinism in builds
    + strengthen guix-daemon containers to further increase reproducibility
    + trusting-trust: bootstrap with different tool chains
    + fixed-point: re-bootstrap until fixed point is reached
    + distributed validation: compare contents of store items with others
      * resist a hydra.gnu.org compromise
  - reproducible containers: mix of 'guix environment' and 'guix system vm'
  - execute code with least privilege
    + build containers like guix-daemon does
    + provide a Plash-like interface in Bash
  - daemon rewritten in Guile
  - more shepherd integration
    + monitor network interfaces and start/stop events based on that
    + include a DHCP client written in Scheme
(add-before 'configure 'set-build-environment (lambda _ (setenv "CC" "gcc") (setenv "CXX" "g++") (setenv "AR" "ar"))) (replace 'configure (lambda _ (invoke "python" "build/gen.py" "--no-last-commit-position"))) (add-after 'configure 'create-last-commit-position (lambda _ ;; Create "last_commit_position.h" to avoid a dependency ;; on 'git' (and the checkout..). (call-with-output-file "out/last_commit_position.h" (lambda (port) (format port (string-append "#define LAST_COMMIT_POSITION_NUM ~a\n" "#define LAST_COMMIT_POSITION \"~a (~a)\"\n") ,revision ,revision ,(string-take commit 8)))))) (replace 'build (lambda _ (invoke "ninja" "-C" "out" "gn" "-j" (number->string (parallel-job-count))))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (if tests? (begin (invoke "ninja" "-C" "out" "gn_unittests" "-j" (number->string (parallel-job-count))) (invoke "./out/gn_unittests")) (format #t "test suite not run~%")))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (install-file "out/gn" (string-append out "/bin")))))))) (native-inputs `(("ninja" ,ninja) ("python" ,python-wrapper))) (synopsis "Generate Ninja build files") (description "GN is a tool that collects information about a project from @file{.gn} files and generates build instructions for the Ninja build system.") ;; GN is distributed as BSD-3, but bundles some files from ICU using the ;; X11 license. (license (list license:bsd-3 license:x11))))) (define-public meson (package (name "meson") (version "0.60.3") (source (origin (method url-fetch) (uri (string-append "https://github.com/mesonbuild/meson/" "releases/download/" version "/meson-" version ".tar.gz")) (sha256 (base32 "13mrrizg4vl6n5k7fz6amyafnn3i097dcarr552qc0ca6nlmzjl7")) (patches (search-patches "meson-allow-dirs-outside-of-prefix.patch")))) (build-system python-build-system) (arguments `(;; FIXME: Tests require many additional inputs and patching many ;; hard-coded file system locations in "run_unittests.py". #:tests? #f #:phases (modify-phases %standard-phases ;; Meson calls the various executables in out/bin through the ;; Python interpreter, so we cannot use the shell wrapper. (replace 'wrap (lambda* (#:key outputs inputs #:allow-other-keys) (let ((python-version (python-version (assoc-ref inputs "python"))) (output (assoc-ref outputs "out"))) (substitute* (string-append output "/bin/meson") (("# EASY-INSTALL-ENTRY-SCRIPT") (format #f "\ import sys sys.path.insert(0, '~a/lib/python~a/site-packages') # EASY-INSTALL-ENTRY-SCRIPT" output python-version))))))))) (inputs (list python-wrapper ninja)) (home-page "https://mesonbuild.com/") (synopsis "Build system designed to be fast and user-friendly") (description "The Meson build system is focused on user-friendliness and speed. It can compile code written in C, C++, Fortran, Java, Rust, and other languages. Meson provides features comparable to those of the Autoconf/Automake/make combo. Build specifications, also known as @dfn{Meson files}, are written in a custom domain-specific language (@dfn{DSL}) that resembles Python.") (license license:asl2.0))) ;;; This older Meson variant is kept for now for gtkmm and others that may ;;; have problems with 0.60. (define-public meson-0.59 (package/inherit meson (version "0.59.4") (source (origin (method url-fetch) (uri (string-append "https://github.com/mesonbuild/meson/" "releases/download/" version "/meson-" version ".tar.gz")) (sha256 (base32 "117cm8794h291lca1wljz1pwnzidgbvrpg3mw3np6ksma368hyd7")) (patches (search-patches "meson-allow-dirs-outside-of-prefix.patch")))))) (define-public premake4 (package (name "premake") (version "4.3") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/premake/Premake/" version "/premake-" version "-src.zip")) (sha256 (base32 "1017rd0wsjfyq2jvpjjhpszaa7kmig6q1nimw76qx3cjz2868lrn")))) (build-system gnu-build-system) (native-inputs (list unzip)) ; for unpacking the source (arguments `(#:make-flags (list (string-append "CC=" ,(cc-for-target))) #:tests? #f ; No test suite #:phases (modify-phases %standard-phases (delete 'configure) (add-after 'unpack 'enter-source (lambda _ (chdir "build/gmake.unix") #t)) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (install-file "../../bin/release/premake4" (string-append (assoc-ref outputs "out") "/bin")) #t))))) (synopsis "Portable software build tool") (description "@code{premake4} is a command line utility that reads a scripted definition of a software project and outputs @file{Makefile}s or other lower-level build files.") (home-page "https://premake.github.io") (license license:bsd-3))) (define-public premake5 (package (inherit premake4) (version "5.0.0-alpha15") (source (origin (method url-fetch) (uri (string-append "https://github.com/premake/premake-core/" "releases/download/v" version "/premake-" version "-src.zip")) (sha256 (base32 "0lyxfyqxyhjqsb3kmx1fyrxinb26i68hb7w7rg8lajczrgkmc3w8")))) (arguments (substitute-keyword-arguments (package-arguments premake4) ((#:phases phases) `(modify-phases ,phases (replace 'enter-source (lambda _ (chdir "build/gmake2.unix") #t)) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (install-file "../../bin/release/premake5" (string-append (assoc-ref outputs "out") "/bin")) #t)))))) (description "@code{premake5} is a command line utility that reads a scripted definition of a software project and outputs @file{Makefile}s or other lower-level build files."))) (define-public tup (package (name "tup") (version "0.7.9") (source (origin (method url-fetch) (uri (string-append "http://gittup.org/tup/releases/tup-v" version ".tar.gz")) (sha256 (base32 "0gnd2598xqgwihdkfkx7qn0q6p4n7npam1fy83mp7s04zwj99syc")) (patches (search-patches "tup-unbundle-dependencies.patch")) (modules '((guix build utils))) (snippet '(begin ;; NOTE: Tup uses a slightly modified Lua, so it cannot be ;; unbundled. See: src/lula/tup-lua.patch (delete-file-recursively "src/pcre") (delete-file-recursively "src/sqlite3") #t)))) (build-system gnu-build-system) (arguments `(#:phases (modify-phases %standard-phases ;; There is a bootstrap script, but it doesn't do what you think - it ;; builds tup. (delete 'bootstrap) (replace 'configure (lambda _ (substitute* "src/tup/link.sh" (("`git describe`") ,version)) (with-output-to-file "tup.config" (lambda _ (format #t "CONFIG_TUP_USE_SYSTEM_SQLITE=y~%"))) #t)) (delete 'check) (replace 'build (lambda _ ;; Based on bootstrap-nofuse.sh, but with a detour to patch-shebang. (invoke "./build.sh") (invoke "./build/tup" "init") (invoke "./build/tup" "generate" "--verbose" "build-nofuse.sh") (patch-shebang "build-nofuse.sh") (invoke "./build-nofuse.sh"))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((outdir (assoc-ref outputs "out")) (ftdetect (string-append outdir "/share/vim/vimfiles/ftdetect"))) (install-file "tup" (string-append outdir "/bin")) (install-file "tup.1" (string-append outdir "/share/man/man1")) (install-file "contrib/syntax/tup.vim" (string-append outdir "/share/vim/vimfiles/syntax")) (mkdir-p ftdetect) (with-output-to-file (string-append ftdetect "/tup.vim") (lambda _ (display "au BufNewFile,BufRead Tupfile,*.tup setf tup"))) #t)))))) (inputs (list fuse pcre `(,pcre "bin") ; pcre-config sqlite)) (native-inputs (list pkg-config)) (home-page "http://gittup.org/tup/") (synopsis "Fast build system that's hard to get wrong") (description "Tup is a generic build system based on a directed acyclic graphs of commands to be executed. Tup instruments your build to detect the exact dependencies of the commands, allowing you to take advantage of ideal parallelism during incremental builds, and detecting any situations where a build worked by accident.") (license license:gpl2))) (define-public osc (package (name "osc") (version "0.172.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/openSUSE/osc") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1sqdnkka3c6b6hwnrmlwrgy7w62cp8raq8mph9pgd2lydzzbvwlp")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'install 'fix-filename (lambda* (#:key outputs #:allow-other-keys) (let ((bin (string-append (assoc-ref outputs "out") "/bin/"))) ;; Main osc tool is renamed in spec file, not setup.py, let's ;; do that too. (rename-file (string-append bin "osc-wrapper.py") (string-append bin "osc")) #t)))))) (native-inputs (list python-chardet)) (inputs (list python-m2crypto python-pycurl rpm)) ; for python-rpm (home-page "https://github.com/openSUSE/osc") (synopsis "Open Build Service command line tool") (description "@command{osc} is a command line interface to the Open Build Service. It allows you to checkout, commit, perform reviews etc. The vast majority of the OBS functionality is available via commands and the rest can be reached via direct API calls.") (license license:gpl2+))) (define-public compiledb (package (name "compiledb") (version "0.10.1") (source (origin (method url-fetch) (uri (pypi-uri "compiledb" version)) (sha256 (base32 "0vlngsdxfakyl8b7rnvn8h3l216lhbrrydr04yhy6kd03zflgfq6")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'no-compat-shim-dependency ;; shutilwhich is only needed for python 3.3 and earlier (lambda _ (substitute* "setup.py" (("^ *'shutilwhich'\n") "")) (substitute* "compiledb/compiler.py" (("shutilwhich") "shutil"))))))) (propagated-inputs (list python-bashlex python-click)) (native-inputs (list python-pytest)) (home-page "https://github.com/nickdiego/compiledb") (synopsis "Generate Clang JSON Compilation Database files for make-based build systems") (description "@code{compiledb} provides a @code{make} python wrapper script which, besides executing the make build command, updates the JSON compilation database file corresponding to that build, resulting in a command-line interface similar to Bear.") (license license:gpl3))) (define-public build (package (name "build") (version "0.3.10") (source (origin (method url-fetch) (uri (string-append "https://www.codesynthesis.com/download/" "build/" (version-major+minor version) "/build-" version ".tar.bz2")) (sha256 (base32 "1lx5rpnmsbip43zpp0a57sl5rm7pjb0y6i2si6rfglfp4p9d3z76")))) (build-system gnu-build-system) (arguments `(#:make-flags (list (string-append "install_prefix=" %output)) #:tests? #f #:phases (modify-phases %standard-phases (delete 'build) (delete 'configure)))) (home-page "https://www.codesynthesis.com/projects/build/") (synopsis "Massively-parallel build system implemented on top of GNU make") (description "Build is a massively-parallel software build system implemented on top of GNU Make, designed with the following tasks in mind: @itemize @item configuration @item building @item testing @item installation @end itemize Build has features such as: @itemize @item Position-independent makefiles. @item Non-recursive multi-makefile include-based structure. @item Leaf makefiles are full-fledged GNU makefiles, not just variable definitions. @item Complete dependency graph. @item Inter-project dependency tracking. @item Extensible language/compiler framework. @end itemize") (license license:gpl2+)))