aboutsummaryrefslogtreecommitdiff
path: root/build-aux/compile-as-derivation.scm
blob: d945a8c79c6670870bccc6de3cfffc4d50880cce (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
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

;; Build Guix using Guix.

(use-modules (srfi srfi-26))

;; Add ~/.config/guix/current to the search path.
(eval-when (expand load eval)
  (and=> (or (getenv "XDG_CONFIG_HOME")
             (and=> (getenv "HOME")
                    (cut string-append <> "/.config/guix/current")))
         (lambda (current)
           (set! %load-path
             (cons (string-append current "/share/guile/site/"
                                  (effective-version))
                   %load-path))
           (set! %load-compiled-path
             (cons (string-append current "/lib/guile/" (effective-version)
                                  "/site-ccache")
                   %load-compiled-path)))))

(use-modules (guix) (guix ui)
             (guix git-download)
             (ice-9 match))

(match (command-line)
  ((program source)
   (with-error-handling
     (with-store store
       (let* ((script (string-append source "/build-aux/build-self.scm"))
              (build  (primitive-load script))
              (git?   (git-predicate source)))
         (run-with-store store
           ;; TODO: Extract #:version and #:commit using Guile-Git.
           (mlet* %store-monad ((source (interned-file source "guix-source"
                                                       #:select? git?
                                                       #:recursive? #t))
                                (drv    (build source #:pull-version 1)))
             (mbegin %store-monad
               (show-what-to-build* (list drv))
               (built-derivations (list drv))
               (with-monad %store-monad
                 (display (derivation->output-path drv))
                 (newline)
                 (return drv))))))))))
10223. Tobias Geerinckx-Rice 2021-03-11gnu: openvpn: Update to 2.5.1 [security fixes]....Non-exhaustively, fixes CVE-2020-7224. * gnu/packages/vpn.scm (openvpn): Update to 2.5.1. Léo Le Bouter 2021-02-15gnu: Add openconnect-sso....* gnu/packages/vpn.scm (openconnect-sso): New variable. Efraim Flashner 7:45:04 +0200'>2021-05-07gnu: giac: Update to 1.7.0-5....* gnu/packages/algebra.scm (giac): Update to 1.7.0-5. Nicolas Goaziou 2021-04-29gnu: mpfrcx: Update to 0.6.1....* gnu/packages/algebra.scm (mpfrcx): Update to 0.6.1. Andreas Enge 2021-04-28gnu: giac: Update to 1.7.0-3....* gnu/packages/algebra.scm (giac): Update to 1.7.0-3. Nicolas Goaziou 2021-03-27gnu: ntl: Update to 11.4.4....* gnu/packages/algebra.scm (ntl): Update to 11.4.4. Tobias Geerinckx-Rice 2021-03-23gnu: giac: Update to 1.7.0-1....* gnu/packages/algebra.scm (giac): Update to 1.7.0-1. Nicolas Goaziou 2021-03-17gnu: Use PACKAGE/INHERIT in more places....* gnu/packages/algebra.scm (fftwf, fftw-openmpi), gnu/packages/audio.scm (ztoolkit-rsvg), gnu/packages/bioinformatics.scm (python2-dendropy), gnu/packages/boost.scm (boost-with-python2), gnu/packages/check.scm (python2-mock, python2-pytest-mock), gnu/packages/cups.scm (hplip-minimal), gnu/packages/freedesktop.scm (libinput-minimal), gnu/packages/gettext.scm (gnu-gettext), gnu/packages/glib.scm (python2-pygobject), gnu/packages/gnome.scm (gdl-minimal, libsoup-minimal, python2-pyatspi), gnu/packages/groff.scm (groff-minimal), gnu/packages/jami.scm (ffmpeg-jami), gnu/packages/libcanberra.scm (libcanberra/gtk+-2), gnu/packages/lirc.scm (python2-lirc), gnu/packages/llvm.scm (clang-runtime-3.5), gnu/packages/mpi.scm (java-openmpi, openmpi-thread-multiple), gnu/packages/node.scm (libnode), gnu/packages/onc-rpc.scm (libtirpc/hurd), gnu/packages/python-compression.scm (bitshuffle-for-snappy), gnu/packages/python-crypto.scm (python2-pycrypto, python2-cryptography) (python2-cryptography, python2-m2crypto), gnu/packages/python-web.scm (python2-html2text, python2-tornado) (python2-terminado, python2-ndg-httpsclient, python2-websocket-client) (python2-rauth, python2-url, python2-s3transfer), gnu/packages/python-xyz.scm (python2-psutil, python2-serpent) (python2-humanfriendly, python2-empy, python2-parse-type, python2-polib) (python2-jsonschema, python2-pystache, python2-cython, python2-numpydoc) (python2-ipyparallel, python2-traitlets, python2-dbus) (python2-beautifulsoup4, python2-pep517, python2-flake8, python2-llfuse) (python2-tlsh, python-file, python2-notebook, python-jupyter-console-minimal) (python2-contextlib2, python2-promise, python2-anyjson, python2-amqp) (python2-kombu, python2-billiard, python2-celery, python2-whoosh) (python2-jellyfish, python-rope, ptpython-2, python2-binaryornot) (python2-setproctitle, python2-argcomplete, python2-xopen, python2-isort) (python2-radon, python2-rfc6555, python2-activepapers, python2-send2trash) (python2-cloudpickle, python2-reparser), gnu/packages/python.scm (python2-called-python), gnu/packages/qt.scm (python2-sip, python-pyqt-without-qtwebkit, python2-pyqt) (python-qscintilla, python-pyqt+qscintilla), gnu/packages/scanner.scm (sane-backends), gnu/packages/sdl.scm (guile3.0-sdl2), gnu/packages/selinux.scm (checkpolicy, libselinux, libsemanage, secilc) (python-sepolgen, policycoreutils), gnu/packages/serialization.scm (lua5.1-libmpack, lua5.2-libmpack), gnu/packages/simulation.scm (fenics), gnu/packages/statistics.scm (python2-statsmodels), gnu/packages/texinfo.scm (info-reader), gnu/packages/wxwidgets.scm (wxwidgets-gtk2, wxwidgets-gtk2-3.1), gnu/packages/xml.scm (xmlsec-nss), gnu/packages/xorg.scm (uim-gtk, uim-qt), guix/build-system/python.scm (package-with-explicit-python) (strip-python2-variant): Use PACKAGE/INHERIT. Mark H Weaver 2021-03-15gnu: Add r-dtt....* gnu/packages/algebra.scm (r-dtt): New variable. Lars-Dominik Braun 2021-03-09gnu: symengine: Fix build....* gnu/packages/algebra.scm (symengine)[native-inputs]: Remove llvm. [arguments]: Adjust accordingly. Efraim Flashner 2021-02-28gnu: singular: Use HTTPS home page URI....* gnu/packages/algebra.scm (singular)[home-page]: Use HTTPS URI. Nicolas Goaziou 2021-02-28gnu: python-flint: Use HTTPS home page URI....* gnu/packages/algebra.scm (python-flint)[home-page]: Use HTTPS URI. Nicolas Goaziou 2021-02-26gnu: cmh: Update to 1.1.0....* gnu/packages/algebra.scm (cmh): Update to 1.1.0. (fplll-4-cmh): Remove variable. Andreas Enge 2021-02-12gnu: pari-gp: Update to 2.13.1....* gnu/packages/algebra.scm (pari-gp): Update to 2.13.1. Andreas Enge 2021-01-22gnu: giac: Update to 1.6.0-47....* gnu/packages/algebra.scm (giac): Update to 1.6.0-47. Nicolas Goaziou 2021-01-13gnu: cmh: Update source code URL....Partly fixes <https://bugs.gnu.org/42162>. * gnu/packages/algebra.scm (cmh)[source, home-page]: Refer to multiprecision.org. Ludovic Courtès 2021-01-13gnu: gmp-ecm: Update source URI....* gnu/packages/algebra.scm (gmp-ecm): Update source URI from gforge.inria.fr to gitlab.inria.fr. Andreas Enge 2021-01-02gnu: giac: Update to 1.6.0-41....* gnu/packages/algebra.scm (giac): Update to 1.6.0-41. Nicolas Goaziou 2020-12-19gnu: arb: Use HTTPS home page URI....* gnu/packages/algebra.scm (arb)[home-page]: Use HTTPS URI. Move above synopsis. Nicolas Goaziou 2020-12-17gnu: glpk: Update to 5.0....* gnu/packages/maths.scm (glpk): Update to 5.0. (glpk-4.65): New variable. * gnu/packages/algebra.scm (giac)[inputs]: Replace glpk with glpk-4. Efraim Flashner 2020-12-13gnu: gp2c: Update to 0.0.12....* gnu/packages/algebra.scm (gp2c): Update to 0.0.12. Andreas Enge 2020-11-23gnu: eigen: Add upstream bugfix patch....This fixes the build of nanopolish, imp, and others. Reported by apteryx in #guix. * gnu/packages/algebra.scm (eigen)[source]: Add patch. * gnu/packages/patches/eigen-remove-openmp-error-counting.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Tobias Geerinckx-Rice 2020-11-19gnu: eigen: Update to 3.3.8....* gnu/packages/algebra.scm (eigen): Update to 3.3.8. Tobias Geerinckx-Rice 2020-11-11gnu: giac: Update to 1.6.0-31....* gnu/packages/algebra.scm (giac): Update to 1.6.0-31. Nicolas Goaziou 2020-11-09gnu: eigen: Add source mirror....* gnu/packages/algebra.scm (eigen)[source]: Add Debian source mirror. Efraim Flashner 2020-11-08gnu: xtensor: Update URIs....* gnu/packages/algebra.scm (xtensor)[source]: Update to new URI. [home-page]: Same. Efraim Flashner 2020-10-20gnu: pari-gp: Update to 2.13.0....* gnu/packages/algebra.scm (pari-gp): Update to 2.13.0. Andreas Enge 2020-10-07gnu: giac: Update to 1.6.0-25....* gnu/packages/algebra.scm (giac): Update to 1.6.0-25. [native-inputs]: Add hevea. Nicolas Goaziou