aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/science.scm
blob: 1414789de973e48035647a52385be0562120d71a (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
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
;;;
;;; 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/>.

(define-module (gnu services science)
  #:export (<rshiny-configuration>
            rshiny-configuration
            rshiny-configuration?
            rshiny-configuration-package
            rshiny-configuration-binary
            rshiny-shepherd-service
            rshiny-service-type))

(use-modules (gnu)
             (guix records)
             (ice-9 match))
(use-service-modules shepherd)
(use-package-modules cran)

(define-record-type* <rshiny-configuration>
  rshiny-configuration
  make-rshiny-configuration
  rshiny-configuration?
  (package          rshiny-configuration-package    ; file-like
                    (default r-shiny))
  (binary           rshiny-configuration-binary     ; string
                    (default "rshiny")))

(define rshiny-shepherd-service
  (match-lambda
    (($ <rshiny-configuration> package binary)
     (list
       (shepherd-service
         (documentation (string-append "R-Shiny service for " binary))
         (provision (list (symbol-append 'rshiny- (string->symbol
                                                    (string-take binary 9)))))
         (requirement '(networking))
         (start
           #~(exec-command
               (list
                 #$(string-append "/run/current-system/profile/bin/" binary))
               ;#:log-file #$(string-append "/var/log/" binary ".log") ; kills shepherd
               #:environment-variables
               (list "R_LIBS_USER=/run/current-system/profile/site-library/")))
         (stop #~(make-kill-destructor)))))))

(define rshiny-service-type
  (service-type
    (name 'rshiny)
    (extensions
      (list
        (service-extension shepherd-root-service-type
                           rshiny-shepherd-service)
        (service-extension profile-service-type
                           ;; We want the package installed so that it
                           ;; pulls in the propagated inputs as well.
                           (lambda (config)
                             (list
                               (rshiny-configuration-package config))))))
    (description
     "Run an R-Shiny webapp as a Guix Service.")))
Likewise. * gnu/packages/wxwidgets.scm (wxwidgets, wxwidgets-2)[inputs]: Likewise. * gnu/packages/xdisorg.scm (xscreensaver)[inputs]: Likewise. * gnu/packages/xfce.scm (tumbler)[inputs]: Likewise. * gnu/packages/xfig.scm (xfig, transfig)[inputs]: Likewise. * gnu/packages/xorg.scm (xpra)[inputs]: Likewise. Marius Bakke 2020-01-19gnu: dillo: Use HTTPS home page....* gnu/packages/web-browsers.scm (dillo)[home-page]: Use HTTPS. [source]: Likewise. Don't hard-code NAME in source URI. Tobias Geerinckx-Rice 2020-01-15gnu: qutebrowser: Update to 1.9.0....* gnu/packages/web-browsers.scm (qutebrowser): Update to 1.9.0. qutebrowser no longer uses qtwebkit by default. It now defaults to qtwebengine. Mike Rosset 2020-01-09gnu: dillo: Fix SSL support....* gnu/packages/web-browsers.scm (dillo)[inputs]: Use openssl-1.0 in place of openssl. Mark H Weaver 2020-01-07gnu: vimb: Update to 3.6.0....* gnu/packages/web-browsers.scm (vimb): Update to 3.6.0. David Wilson 2020-01-06gnu: next: Update to 1.4.0....* gnu/packages/web-browsers.scm (next): Update to 1.4.0. Pierre Neidhardt 2019-12-24gnu: qutebrowser: Update source URI....* gnu/packages/web-browsers.scm (qutebrowser)[source]: Github redirects to this updated URI. Brett Gilio 2019-12-24gnu: qutebrowser: Add comment about tests....* gnu/packages/web-browsers.scm (qutebrowser)[arguments]: Indicate that tests have been added, but to wait on fixing or working-around the failing test case for QtWebEngine until it is determined whether a liberated QtWebEngine can be made available or not. Brett Gilio 2019-12-24gnu: qutebrowser: Update to 1.8.3....* gnu/packages/web-browsers.scm (qutebrowser): Update to 1.8.3. [arguments]: Update how .desktop attribute gets installed. Brett Gilio 2019-12-05gnu: Really move lisp libraries to lisp-xyz, uglify-js to javascript and stum......* gnu/local.mk: Include lisp-xyz.scm. * gnu/packages/lisp-xyz.scm: New file. * gnu/packages/lisp.scm: Move all lisp libraries to lisp-xyz.scm, uglify-js to javascript.scm and stumpwm to wm.scm. * gnu/packages/javascript.scm: Add uglify-js. * gnu/packages/wm.scm: Add stumpwm. * gnu/packages/bioinformatics.scm: Find uglify-js in javascript.scm. * gnu/packages/machine-learning.scm: Depend on lisp-xyz.scm instead of lisp.scm. * gnu/packages/web.scm: Find uglify-js in javascript.scm. * gnu/packages/web-browsers.scm: Depend on lisp-xyz.scm instead of lisp.scm. * guix/build-system/minify.scm (default-uglify-js): Find uglify-js in javascript module instead of lisp. Pierre Neidhardt 2019-12-05Revert "gnu: Properly move lisp libraries to lisp-xyz, uglify-js to javascrip......This reverts commit ac1ee30f4f7f9d0ae2a655676b0e8b9eb90a35dd, which still breaks ‘guix pull’. Tobias Geerinckx-Rice 2019-12-05gnu: Properly move lisp libraries to lisp-xyz, uglify-js to javascript and st......* gnu/local.mk: Include lisp-xyz.scm. * gnu/packages/lisp-xyz.scm: New file. * gnu/packages/lisp.scm: Move all lisp libraries to lisp-xyz.scm, uglify-js to javascript.scm and stumpwm to wm.scm. * gnu/packages/javascript.scm: Add uglify-js. * gnu/packages/wm.scm: Add stumpwm. * gnu/packages/bioinformatics.scm: Find uglify-js in javascript.scm. * gnu/packages/machine-learning.scm: Depend on lisp-xyz.scm instead of lisp.scm. * gnu/packages/web.scm: Find uglify-js in javascript.scm. * gnu/packages/web-browsers.scm: Depend on lisp-xyz.scm instead of lisp.scm. * guix/build-system/minify.scm (default-uglify-js): Find uglify-js in javascript module instead of lisp. Pierre Neidhardt 2019-11-28Revert "gnu: Move lisp libraries to lisp-xyz, uglify-js to javascript and stu......This reverts commit abf43a67d5929bf279edce3e790ef1348dda32a5 as it broke "guix pull". Ricardo Wurmus 2019-11-28gnu: Move lisp libraries to lisp-xyz, uglify-js to javascript and stumpwm to wm....* gnu/local.mk: Include lisp-xyz.scm. * gnu/packages/lisp-xyz.scm: New file. * gnu/packages/lisp.scm: Move all lisp libraries to lisp-xyz.scm, uglify-js to javascript.scm and stumpwm to wm.scm. * gnu/packages/javascript.scm: Add uglify-js. * gnu/packages/wm.scm: Add stumpwm. * gnu/packages/bioinformatics.scm: Find uglify-js in javascript.scm. * gnu/packages/machine-learning.scm: Depend on lisp-xyz.scm instead of lisp.scm. * gnu/packages/web.scm: Find uglify-js in javascript.scm. * gnu/packages/web-browsers.scm: Depend on lisp-xyz.scm instead of lisp.scm. Pierre Neidhardt 2019-11-14gnu: links: Update to 2.20.2....* gnu/packages/web-browsers.scm (links): Update to 2.20.2. Efraim Flashner 2019-11-13gnu: luakit: Don't use unstable tarball....* gnu/packages/web-browsers.scm (luakit)[source]: Download using git-fetch. Efraim Flashner 2019-11-13gnu: lynx: Fix errors with TLS 1.3 hosts....Fixes <https://bugs.gnu.org/38171>. Reported by Bengt Richter <bokr@bokr.com>. See <https://lists.gnu.org/archive/html/lynx-dev/2018-12/msg00009.html>. * gnu/packages/web-browsers.scm (lynx)[inputs, arguments]: Replace GnuTLS with OpenSSL. Clément Lassieur 2019-10-24gnu: lynx: Ignore CVE-2016-9179....This was fixed in a dev release two years prior to our packaged version. * gnu/packages/web-browsers.scm (lynx)[properties]: New field. Efraim Flashner 2019-10-06Merge branch 'master' into core-updatesRicardo Wurmus 2019-10-05gnu: next: Update to 1.3.4....* gnu/packages/web-browsers.scm (next-gtk-webkit): Update to 1.3.4. Pierre Neidhardt 2019-10-02gnu: slime-swank: Update to 2.24 and use asdf-build-system/source....* gnu/packages/lisp.scm (sbcl-slime-swank): Deprecate in favour of cl-slime-swank. (cl-slime-swank): New package. (sbcl-mgl-pax): Use cl-slime-swank. * gnu/packages/web-browsers.scm (next): Use cl-slime-swank. Pierre Neidhardt 2019-10-02gnu: next: Update to 1.3.3....* gnu/packages/web-browsers.scm (next-gtk-webkit): Bump version. (sbcl-next-history-tree): New package. (sbcl-next-password-manager): New package. (next)[inputs]: Add cl-ansi-text, cl-prevalence, sbcl-next-history-tree, sbcl-next-password-manager. Pierre Neidhardt 2019-09-27Merge branch 'master' into core-updatesMarius Bakke 2019-09-27gnu: WebKitGTK: Update to 2.26.1....* gnu/packages/webkit.scm (webkitgtk-2.24): Rename to ... (webkitgtk-2.26): ... this. Update to 2.26.1. [inputs]: Add BUBBLEWRAP, LIBSECCOMP, LIBWPE, WPEBACKEND-FDO, and XDG-DBUS-PROXY. * gnu/packages/gnome.scm (eolie, epiphany)[inputs]: Adjust for changed variable name. * gnu/packages/web-browsers.scm (next-gtk-webkit)[inputs]: Likewise. Marius Bakke 2019-09-26gnu: vimb: Update to 3.5.0....* gnu/packages/web-browsers.scm (vimb): Update to 3.5.0. Tobias Geerinckx-Rice 2019-09-24Merge branch 'master' into core-updatesLudovic Courtès 2019-09-19gnu: next: Update to 1.3.2....* gnu/packages/web-browsers.scm (next): Update to 1.3.2. Pierre Neidhardt 2019-09-17Merge branch 'master' into core-updatesLudovic Courtès 2019-09-10gnu: links: Update to 2.20.1 [security fix for tor users]....* gnu/packages/web-browsers.scm (links): Update to 2.20.1. Tobias Geerinckx-Rice 2019-09-06Merge branch 'master' into core-updatesMark H Weaver 2019-09-05Revert "gnu: next: Compress the executable."...Some essential references (e.g. libfixposix) are lost in the process. This reverts commit 0e8b91dbc45306984d682307d8b40b0e323bb4be. Pierre Neidhardt 2019-09-05gnu: next: Compress the executable....* gnu/packages/web-browsers.scm (next)[arguments]: Compressing the executable brings it from about 95 MiB to 22 MiB. Pierre Neidhardt 2019-09-03gnu: next: Update to 1.3.1....* gnu/packages/web-browsers.scm (next-gtk-webkit): Update to 1.3.1. [source]: Use GitHub. (sbcl-next-download-manager)[arguments]: Fix asd-system-name. (next)[inputs]: Remove unneeded dependencies. Pierre Neidhardt 2019-08-29Merge branch 'master' into core-updatesMark H Weaver 2019-08-29gnu: next: Update to 1.3.0 and rename sbcl-next to next....* gnu/packages/web-browsers.scm (sbcl-next): Deprecate for next. * gnu/packages/web-browsers.scm (next): Update to 1.3.0. [arguments]: Add phase to fix version number. [inputs]: Update dependencies for 1.3.0. Pierre Neidhardt 2019-08-29gnu: Add sbcl-next-download-manager....* gnu/packages/web-browsers.scm (sbcl-next-download-manager): New variable. It's a Common Lisp system dependency for `next', which is why we don't export the package. Pierre Neidhardt 2019-08-29gnu: next-gtk-webkit: Update to 1.3.0 and hide package....* gnu/packages/web-browsers.scm (next-gtk-webkit): Update to 1.3.0. We hide the package because it is not usable on its own, it's a necessary backend for the `next' package. Pierre Neidhardt 2019-05-25Merge branch 'staging' into core-updatesMarius Bakke 2019-05-21gnu: next-gtk-webkit: Update to 1.2.2....* gnu/packages/web-browsers.scm (next-gtk-webkit): Update to 1.2.2. Pierre Neidhardt 2019-05-07gnu: sbcl-next: Update to 1.2.1....* gnu/packages/web-browsers.scm (sbcl-next): Update to 1.2.1. Pierre Neidhardt 2019-05-07gnu: next-gtk-webkit: Update to 1.2.1....* gnu/packages/web-browsers.scm (next-gtk-webkit): Update to 1.2.1. Pierre Neidhardt 2019-05-01Merge branch 'master' into core-updatesMarius Bakke