2015-04-19 13:59:37 -04:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
|
2016-10-22 06:00:51 -04:00
|
|
|
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
2017-01-09 12:33:28 -05:00
|
|
|
;;; Copyright © 2016, 2017 Mathieu Lirzin <mthl@gnu.org>
|
2021-01-15 11:10:41 -05:00
|
|
|
;;; Copyright © 2017, 2020, 2021 Mathieu Othacehe <m.othacehe@gmail.com>
|
2020-04-15 14:01:06 -04:00
|
|
|
;;; Copyright © 2017, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
|
2018-06-19 10:39:15 -04:00
|
|
|
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
|
2022-08-25 03:44:21 -04:00
|
|
|
;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net>
|
2015-04-19 13:59:37 -04:00
|
|
|
;;;
|
|
|
|
;;; 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 packages ci)
|
|
|
|
#:use-module ((guix licenses) #:prefix l:)
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
#:use-module (guix packages)
|
2018-11-10 05:03:35 -05:00
|
|
|
#:use-module (guix download)
|
2015-04-19 13:59:37 -04:00
|
|
|
#:use-module (guix git-download)
|
2021-01-15 11:10:41 -05:00
|
|
|
#:use-module (guix download)
|
2022-05-07 04:37:33 -04:00
|
|
|
#:use-module ((guix search-paths) #:select ($SSL_CERT_DIR))
|
2015-04-19 13:59:37 -04:00
|
|
|
#:use-module (gnu packages autotools)
|
|
|
|
#:use-module (gnu packages base)
|
2018-11-10 05:03:35 -05:00
|
|
|
#:use-module (gnu packages boost)
|
|
|
|
#:use-module (gnu packages check)
|
2015-04-19 13:59:37 -04:00
|
|
|
#:use-module (gnu packages docbook)
|
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages databases)
|
|
|
|
#:use-module (gnu packages guile)
|
gnu: Move most packages from guile.scm to new module.
* gnu/packages/guile.scm (artanis, guildhall, guile-aspell, guile-bash,
guile-8sync, guile-daemon, guile-dsv, guile-fibers, guile-syntax-highlight,
guile-sjson, guile-colorized, guile-pfds, guile-aa-tree, guile-simple-zmq,
jupyter-guile-kernel, guile-sparql, guile-debbugs, guile-email,
guile-debbugs-next, guile-newt, guile-mastodon, guile-parted, guile-xosd,
guile-dbi, guile-dbd-sqlite3, guile-config, guile-hall, guile-ics, guile-wisp,
guile-sly, g-wrap, guile-miniadapton, guile-reader, guile2.2-reader,
guile-ncurses, guile-ncurses/gpm, guile-lib, guile2.0-lib, guile2.2-lib,
guile-minikanren, guile2.0-minikanren, guile2.2-minikanren, guile-irregex,
guile2.0-irregex, guile2.2-irregex, haunt, guile2.0-haunt, guile2.2-haunt,
guile-redis, guile2.0-redis, guile2.2-redis, guile-commonmark,
guile2.0-commonmark, guile2.2-commonmark, mcron, mcron2): Move these variables
from here...
* gnu/packages/guile-xyz.scm: ...to this new file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/installer.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/ci.scm,
gnu/packages/gtk.scm,
gnu/packages/guile.scm,
gnu/packages/mail.scm,
gnu/packages/package-management.scm,
gnu/packages/skribilo.scm,
gnu/packages/web.scm,
gnu/services/mcron.scm: Update module references.
2019-01-28 08:57:10 -05:00
|
|
|
#:use-module (gnu packages guile-xyz)
|
2018-09-05 08:46:28 -04:00
|
|
|
#:use-module (gnu packages gnupg)
|
2015-04-19 13:59:37 -04:00
|
|
|
#:use-module (gnu packages mail)
|
|
|
|
#:use-module (gnu packages package-management)
|
|
|
|
#:use-module (gnu packages perl)
|
2019-01-14 10:00:35 -05:00
|
|
|
#:use-module (gnu packages perl-compression)
|
2015-04-19 13:59:37 -04:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2018-11-10 05:03:35 -05:00
|
|
|
#:use-module (gnu packages serialization)
|
|
|
|
#:use-module (gnu packages sqlite)
|
gnu: Move content of openssl module into tls module.
* gnu/packages/openssl.scm (openssl, perl-net-ssleay): Move to...
* gnu/packages/tls.scm: ...here.
* gnu/packages/openssl.scm: Delete file.
* gnu-system.am (GNU_SYSTEM_MODULES): Unregister deleted file.
* gnu/packages/{admin.scm, bittorrent.scm, certs.scm, ci.scm,
cyrus-sasl.scm, databases.scm, dns.scm, ebook.scm, enlightenment.scm,
gnunet.scm, libreoffice.scm, links.scm, mail.scm, messaging.scm,
networking.scm, ntp.scm, openldap.scm, package-management.scm, pdf.scm,
python.scm, qt.scm, rdesktop.scm, rdf.scm, ruby.scm, ssh.scm,
synergy.scm, tor.scm, version-control.scm, video.scm, vpn.scm,
w3m.scm, web.scm, weechat.scm, xiph.scm}: Adapt module import.
2015-07-05 12:27:24 -04:00
|
|
|
#:use-module (gnu packages tls)
|
2016-12-01 15:10:18 -05:00
|
|
|
#:use-module (gnu packages texinfo)
|
2021-09-18 01:05:55 -04:00
|
|
|
#:use-module (gnu packages uglifyjs)
|
2015-04-19 13:59:37 -04:00
|
|
|
#:use-module (gnu packages version-control)
|
|
|
|
#:use-module (gnu packages web)
|
|
|
|
#:use-module (gnu packages xml)
|
2018-11-10 05:03:35 -05:00
|
|
|
#:use-module (guix build-system cmake)
|
2022-05-07 04:37:33 -04:00
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module ((guix search-paths) #:select ($SSL_CERT_DIR)))
|
2015-04-19 13:59:37 -04:00
|
|
|
|
2016-10-22 06:00:51 -04:00
|
|
|
(define-public cuirass
|
2023-06-02 10:13:35 -04:00
|
|
|
(let ((commit "b82596778bf653a572b5fcd483388226b29b96f3")
|
|
|
|
(revision "16"))
|
2016-10-22 06:00:51 -04:00
|
|
|
(package
|
|
|
|
(name "cuirass")
|
2021-06-13 05:44:45 -04:00
|
|
|
(version (git-version "1.1.0" revision commit))
|
2021-03-10 02:41:10 -05:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://git.savannah.gnu.org/git/guix/guix-cuirass.git")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2023-06-02 10:13:35 -04:00
|
|
|
"1246cs3bmpkp8jis0xxasmrpq622p1ds3s0payrv5bxng9j6dbfp"))))
|
2016-10-22 06:00:51 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2021-03-26 16:13:06 -04:00
|
|
|
`(#:modules ((guix build utils)
|
2017-05-10 11:03:49 -04:00
|
|
|
(guix build gnu-build-system)
|
|
|
|
(ice-9 rdelim)
|
|
|
|
(ice-9 popen))
|
2019-10-23 15:36:27 -04:00
|
|
|
#:configure-flags '("--localstatedir=/var") ;for /var/log/cuirass
|
2021-04-09 08:25:50 -04:00
|
|
|
;; XXX: HTTP tests fail on aarch64 due to Fibers errors, disable them
|
|
|
|
;; on that architecture for now.
|
|
|
|
#:tests? ,(let ((s (or (%current-target-system)
|
|
|
|
(%current-system))))
|
|
|
|
(not (string-prefix? "aarch64" s)))
|
2021-03-23 06:45:54 -04:00
|
|
|
#:parallel-tests? #f
|
2017-05-10 11:03:49 -04:00
|
|
|
#:phases
|
2016-10-22 06:00:51 -04:00
|
|
|
(modify-phases %standard-phases
|
2021-03-26 16:13:06 -04:00
|
|
|
(add-before 'bootstrap 'fix-version-gen
|
|
|
|
(lambda _
|
|
|
|
(patch-shebang "build-aux/git-version-gen")
|
|
|
|
|
|
|
|
(call-with-output-file ".tarball-version"
|
|
|
|
(lambda (port)
|
|
|
|
(display ,version port)))))
|
2016-10-22 06:00:51 -04:00
|
|
|
(add-after 'install 'wrap-program
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
;; Wrap the 'cuirass' command to refer to the right modules.
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
2021-01-15 11:10:41 -05:00
|
|
|
(avahi (assoc-ref inputs "guile-avahi"))
|
2018-09-05 08:46:28 -04:00
|
|
|
(gcrypt (assoc-ref inputs "guile-gcrypt"))
|
2016-10-22 06:00:51 -04:00
|
|
|
(json (assoc-ref inputs "guile-json"))
|
2021-01-15 11:10:41 -05:00
|
|
|
(zmq (assoc-ref inputs "guile-simple-zmq"))
|
|
|
|
(squee (assoc-ref inputs "guile-squee"))
|
2017-08-17 03:11:14 -04:00
|
|
|
(git (assoc-ref inputs "guile-git"))
|
|
|
|
(bytes (assoc-ref inputs "guile-bytestructures"))
|
2018-02-14 17:44:28 -05:00
|
|
|
(fibers (assoc-ref inputs "guile-fibers"))
|
2020-08-25 10:38:19 -04:00
|
|
|
(zlib (assoc-ref inputs "guile-zlib"))
|
2021-02-22 03:37:55 -05:00
|
|
|
(matd (assoc-ref inputs "guile-mastodon"))
|
2023-05-09 18:21:55 -04:00
|
|
|
(tls (assoc-ref inputs "guile-gnutls"))
|
2021-02-22 03:37:55 -05:00
|
|
|
(mail (assoc-ref inputs "mailutils"))
|
2016-10-22 06:00:51 -04:00
|
|
|
(guix (assoc-ref inputs "guix"))
|
2021-01-15 11:10:41 -05:00
|
|
|
(deps (list avahi gcrypt json zmq squee git bytes
|
2021-02-22 10:23:49 -05:00
|
|
|
fibers zlib matd tls mail guix))
|
2021-05-25 09:20:34 -04:00
|
|
|
(guile (assoc-ref inputs "guile"))
|
2021-03-10 02:41:10 -05:00
|
|
|
(effective
|
|
|
|
(read-line
|
|
|
|
(open-pipe* OPEN_READ
|
|
|
|
(string-append guile "/bin/guile")
|
|
|
|
"-c" "(display (effective-version))")))
|
|
|
|
(mods
|
|
|
|
(string-drop-right ;drop trailing colon
|
|
|
|
(string-join deps
|
|
|
|
(string-append "/share/guile/site/"
|
|
|
|
effective ":")
|
|
|
|
'suffix)
|
|
|
|
1))
|
|
|
|
(objs
|
|
|
|
(string-drop-right
|
|
|
|
(string-join deps
|
|
|
|
(string-append "/lib/guile/" effective
|
|
|
|
"/site-ccache:")
|
|
|
|
'suffix)
|
|
|
|
1)))
|
2021-03-23 06:45:54 -04:00
|
|
|
;; Make sure 'cuirass' can find the relevant Guile modules.
|
|
|
|
(wrap-program (string-append out "/bin/cuirass")
|
|
|
|
`("PATH" ":" prefix (,(string-append out "/bin")))
|
|
|
|
`("GUILE_LOAD_PATH" ":" prefix (,mods))
|
2022-01-09 12:04:56 -05:00
|
|
|
`("GUILE_LOAD_COMPILED_PATH" ":" prefix (,objs)))))))))
|
2016-10-22 06:00:51 -04:00
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list guile-3.0-latest
|
|
|
|
guile-avahi
|
2023-06-06 17:53:55 -04:00
|
|
|
guile-fibers-1.3
|
2021-12-13 11:18:24 -05:00
|
|
|
guile-gcrypt
|
|
|
|
guile-json-4
|
|
|
|
guile-simple-zmq
|
2022-01-09 14:40:10 -05:00
|
|
|
guile-squee
|
2021-12-13 11:18:24 -05:00
|
|
|
guile-git
|
|
|
|
guile-zlib
|
|
|
|
guile-mastodon
|
2023-05-09 18:21:55 -04:00
|
|
|
guile-gnutls
|
2021-12-13 11:18:24 -05:00
|
|
|
mailutils
|
|
|
|
;; FIXME: this is propagated by "guile-git", but it needs to be among
|
|
|
|
;; the inputs to add it to GUILE_LOAD_PATH.
|
|
|
|
guile-bytestructures
|
2022-05-25 18:11:45 -04:00
|
|
|
|
2023-01-26 09:16:54 -05:00
|
|
|
guix))
|
2016-10-22 06:00:51 -04:00
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list autoconf automake pkg-config texinfo ephemeralpg))
|
2017-09-29 04:00:04 -04:00
|
|
|
(native-search-paths
|
|
|
|
;; For HTTPS access, Cuirass itself honors these variables, with the
|
|
|
|
;; same semantics as Git and OpenSSL (respectively).
|
|
|
|
(list (search-path-specification
|
|
|
|
(variable "GIT_SSL_CAINFO")
|
|
|
|
(file-type 'regular)
|
|
|
|
(separator #f) ;single entry
|
|
|
|
(files '("etc/ssl/certs/ca-certificates.crt")))
|
2022-05-07 04:37:33 -04:00
|
|
|
$SSL_CERT_DIR))
|
2016-10-22 06:00:51 -04:00
|
|
|
(synopsis "Continuous integration system")
|
|
|
|
(description
|
|
|
|
"Cuirass is a continuous integration tool using GNU Guix. It is
|
|
|
|
intended as a replacement for Hydra.")
|
2021-04-01 06:06:06 -04:00
|
|
|
(home-page "https://guix.gnu.org/cuirass/")
|
2016-10-22 06:00:51 -04:00
|
|
|
(license l:gpl3+))))
|
2018-11-10 05:03:35 -05:00
|
|
|
|
|
|
|
(define-public laminar
|
|
|
|
(package
|
|
|
|
(name "laminar")
|
2022-08-25 03:44:21 -04:00
|
|
|
(version "1.2")
|
2018-11-10 05:03:35 -05:00
|
|
|
(source
|
2022-08-25 04:16:41 -04:00
|
|
|
(origin (method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/ohwgiles/laminar")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2018-11-10 05:03:35 -05:00
|
|
|
(sha256
|
|
|
|
(base32
|
2022-08-25 04:16:41 -04:00
|
|
|
"1sg0kccp3nczkn2vxcsqv10vyvmjnhpaykc1nfhh55jyda4xzf9w"))))
|
2018-11-10 05:03:35 -05:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; TODO Can't build tests
|
|
|
|
#:configure-flags
|
|
|
|
(list "-DCMAKE_CXX_STANDARD=17"
|
|
|
|
;; "-DBUILD_TESTS=true" TODO: objcopy: js/stPskyUS: can't add
|
|
|
|
;; section '.note.GNU-stack': file format not recognized
|
|
|
|
(string-append "-DLAMINAR_VERSION=" ,version))
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch-CMakeLists.txt
|
|
|
|
(lambda _
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
(("file\\(DOWNLOAD.*\n$")
|
|
|
|
"# file download removed by Guix --")
|
|
|
|
(("install\\(FILES etc/laminar.service DESTINATION \\$\\{SYSTEMD\\_UNITDIR\\}\\)")
|
|
|
|
"")
|
|
|
|
(("install\\(FILES \\$\\{CMAKE\\_CURRENT\\_BINARY\\_DIR\\}\\/laminar\\.service DESTINATION \\$\\{SYSTEMD\\_UNITDIR\\}\\)")
|
|
|
|
"")
|
|
|
|
(("install\\(FILES etc/laminar\\.conf DESTINATION \\/etc\\)") "")
|
2022-08-25 03:44:21 -04:00
|
|
|
(("\\/usr\\/") ""))))
|
2018-11-10 05:03:35 -05:00
|
|
|
(add-after 'configure 'copy-in-javascript-and-css
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(use-modules (ice-9 popen))
|
|
|
|
|
|
|
|
(mkdir-p "../build/js")
|
|
|
|
(for-each (lambda (name)
|
|
|
|
(let* ((file
|
|
|
|
(assoc-ref inputs (string-append name ".js")))
|
|
|
|
(port
|
2021-09-18 01:05:55 -04:00
|
|
|
(open-pipe* OPEN_READ "uglifyjs" file))
|
2018-11-10 05:03:35 -05:00
|
|
|
(destination
|
|
|
|
(string-append
|
|
|
|
"../build/js/" name ".min.js")))
|
|
|
|
|
|
|
|
(call-with-output-file destination
|
|
|
|
(lambda (output-port)
|
|
|
|
(dump-port port output-port)))
|
|
|
|
|
|
|
|
(let ((exit (close-pipe port)))
|
|
|
|
(unless (zero? exit)
|
2021-09-18 01:05:55 -04:00
|
|
|
(error "uglifyjs failed" exit)))))
|
2018-11-10 05:03:35 -05:00
|
|
|
|
|
|
|
'("vue"
|
|
|
|
"vue-router"
|
|
|
|
"Chart"))
|
|
|
|
|
|
|
|
;; ansi_up.js isn't minified
|
|
|
|
(copy-file (assoc-ref inputs "ansi_up.js")
|
2022-08-25 03:44:21 -04:00
|
|
|
"../build/js/ansi_up.js"))))))
|
2018-11-10 05:03:35 -05:00
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list capnproto rapidjson sqlite boost zlib))
|
2018-11-10 05:03:35 -05:00
|
|
|
(native-inputs
|
|
|
|
`(("googletest" ,googletest)
|
2021-09-18 01:05:55 -04:00
|
|
|
("uglifyjs" ,node-uglify-js)
|
2018-11-10 05:03:35 -05:00
|
|
|
|
|
|
|
("vue.js"
|
|
|
|
,(origin (method url-fetch)
|
|
|
|
(uri (string-append "https://raw.githubusercontent.com/"
|
|
|
|
"vuejs/vue/v2.6.12/dist/vue.js"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1mq2dn6yqbmzar77xf4x2bvvanf9xc9nwfq06sksl5zmr300m7qm"))))
|
|
|
|
("vue-router.js"
|
|
|
|
,(origin (method url-fetch)
|
|
|
|
(uri (string-append "https://raw.githubusercontent.com/"
|
|
|
|
"vuejs/vue-router/v3.4.8/dist/vue-router.js"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1hkrbgzhpnrsb4zdafslqagy1vkac6bkdj7kh49js2lhkp9z4nj5"))))
|
|
|
|
("ansi_up.js"
|
|
|
|
,(origin (method url-fetch)
|
|
|
|
(uri (string-append "https://raw.githubusercontent.com/"
|
2022-01-08 06:08:47 -05:00
|
|
|
"drudru/ansi_up/v4.0.4/ansi_up.js"))
|
2018-11-10 05:03:35 -05:00
|
|
|
(sha256
|
|
|
|
(base32
|
2022-01-08 06:08:47 -05:00
|
|
|
"1dx8wn38ds8d01kkih26fx1yrisg3kpz61qynjr4zil03ap0hrlr"))))
|
2018-11-10 05:03:35 -05:00
|
|
|
("Chart.js"
|
|
|
|
,(origin (method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/chartjs/Chart.js/"
|
|
|
|
"releases/download/v2.7.2/Chart.js"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"05m3gk6hqjx92j20drnk7q075qpjraywqaf25lnglmsgsgpiqsr7"))))))
|
|
|
|
(synopsis "Lightweight continuous integration service")
|
|
|
|
(description
|
|
|
|
"Laminar is a lightweight and modular continuous integration service. It
|
|
|
|
doesn't have a configuration web UI instead uses version-controllable
|
|
|
|
configuration files and scripts.
|
|
|
|
|
|
|
|
Laminar encourages the use of existing tools such as bash and cron instead of
|
|
|
|
reinventing them.")
|
|
|
|
(home-page "https://laminar.ohwg.net/")
|
|
|
|
(license l:gpl3+)))
|