2015-04-19 17:59:37 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
|
2016-10-22 10:00:51 +00:00
|
|
|
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
2017-01-09 17:33:28 +00:00
|
|
|
;;; Copyright © 2016, 2017 Mathieu Lirzin <mthl@gnu.org>
|
2020-06-10 15:31:08 +00:00
|
|
|
;;; Copyright © 2017, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
|
2020-04-15 18:01:06 +00:00
|
|
|
;;; Copyright © 2017, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
|
2018-06-19 14:39:15 +00:00
|
|
|
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
|
2015-04-19 17:59:37 +00: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)
|
|
|
|
#:use-module (guix git-download)
|
|
|
|
#:use-module (gnu packages autotools)
|
|
|
|
#:use-module (gnu packages base)
|
|
|
|
#: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 13:57:10 +00:00
|
|
|
#:use-module (gnu packages guile-xyz)
|
2018-09-05 12:46:28 +00:00
|
|
|
#:use-module (gnu packages gnupg)
|
2015-04-19 17:59:37 +00:00
|
|
|
#:use-module (gnu packages mail)
|
|
|
|
#:use-module (gnu packages package-management)
|
|
|
|
#:use-module (gnu packages perl)
|
2019-01-14 15:00:35 +00:00
|
|
|
#:use-module (gnu packages perl-compression)
|
2015-04-19 17:59:37 +00:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2020-09-24 08:26:05 +00:00
|
|
|
#: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 16:27:24 +00:00
|
|
|
#:use-module (gnu packages tls)
|
2016-12-01 20:10:18 +00:00
|
|
|
#:use-module (gnu packages texinfo)
|
2015-04-19 17:59:37 +00:00
|
|
|
#:use-module (gnu packages version-control)
|
|
|
|
#:use-module (gnu packages web)
|
|
|
|
#:use-module (gnu packages xml)
|
2020-01-01 18:56:11 +00:00
|
|
|
#:use-module (guix build-system gnu))
|
2015-04-19 17:59:37 +00:00
|
|
|
|
2020-09-24 08:26:05 +00:00
|
|
|
;; Guile-Sqlite3 package adding SQL query logging support.
|
|
|
|
;; Remove it when next Guile-Sqlite3 release is out.
|
|
|
|
(define-public guile-sqlite3-dev
|
|
|
|
(let ((commit "22ef45d268de7707cbbb943c404f9b0c1668e2e1")
|
|
|
|
(revision "1"))
|
|
|
|
(package
|
|
|
|
(inherit guile-sqlite3)
|
|
|
|
(name "guile-sqlite3")
|
|
|
|
(version (git-version "0.1.2" revision commit))
|
|
|
|
(home-page "https://notabug.org/mothacehe/guile-sqlite3.git")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url home-page)
|
|
|
|
(commit commit)))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1q90f8zhw9n1c39szd2ba7aj5fi92m09pnlv0z7jbhnnjam5jwcd"))
|
|
|
|
(file-name (string-append name "-" version "-checkout")))))))
|
|
|
|
|
2016-10-22 10:00:51 +00:00
|
|
|
(define-public cuirass
|
2020-11-25 15:57:32 +00:00
|
|
|
(let ((commit "fd432b8e8f449d691773e96e7d90f44761e01aa3")
|
|
|
|
(revision "55"))
|
2016-10-22 10:00:51 +00:00
|
|
|
(package
|
|
|
|
(name "cuirass")
|
2020-04-15 18:01:06 +00:00
|
|
|
(version (git-version "0.0.1" revision commit))
|
2016-10-22 10:00:51 +00:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
2017-05-10 15:03:49 +00:00
|
|
|
(url "https://git.savannah.gnu.org/git/guix/guix-cuirass.git")
|
2016-10-22 10:00:51 +00:00
|
|
|
(commit commit)))
|
2020-04-15 18:01:06 +00:00
|
|
|
(file-name (git-file-name name version))
|
2016-10-22 10:00:51 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
2020-11-25 15:57:32 +00:00
|
|
|
"10j3w3px0250avwry2x8wsa0m0plvm957g4qqgnajsbc9gvka554"))))
|
2016-10-22 10:00:51 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2017-05-10 15:03:49 +00:00
|
|
|
'(#:modules ((guix build utils)
|
|
|
|
(guix build gnu-build-system)
|
|
|
|
(ice-9 rdelim)
|
|
|
|
(ice-9 popen))
|
|
|
|
|
2019-10-23 19:36:27 +00:00
|
|
|
#:configure-flags '("--localstatedir=/var") ;for /var/log/cuirass
|
|
|
|
|
2017-05-10 15:03:49 +00:00
|
|
|
#:phases
|
2016-10-22 10:00:51 +00:00
|
|
|
(modify-phases %standard-phases
|
2017-01-09 17:33:28 +00:00
|
|
|
(add-after 'unpack 'disable-repo-tests
|
|
|
|
(λ _
|
|
|
|
;; Disable tests that use a connection to the Guix daemon.
|
|
|
|
(substitute* "Makefile.am"
|
|
|
|
(("tests/repo.scm \\\\") "\\"))
|
|
|
|
#t))
|
2017-09-07 13:36:28 +00:00
|
|
|
(add-after 'disable-repo-tests 'patch-/bin/sh
|
|
|
|
(lambda _
|
|
|
|
(substitute* "build-aux/git-version-gen"
|
|
|
|
(("#!/bin/sh") (string-append "#!" (which "sh"))))
|
|
|
|
#t))
|
2016-10-22 10:00:51 +00: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"))
|
2018-09-05 12:46:28 +00:00
|
|
|
(gcrypt (assoc-ref inputs "guile-gcrypt"))
|
2016-10-22 10:00:51 +00:00
|
|
|
(json (assoc-ref inputs "guile-json"))
|
|
|
|
(sqlite (assoc-ref inputs "guile-sqlite3"))
|
2017-08-17 07:11:14 +00:00
|
|
|
(git (assoc-ref inputs "guile-git"))
|
|
|
|
(bytes (assoc-ref inputs "guile-bytestructures"))
|
2018-02-14 22:44:28 +00:00
|
|
|
(fibers (assoc-ref inputs "guile-fibers"))
|
2020-08-25 14:38:19 +00:00
|
|
|
(zlib (assoc-ref inputs "guile-zlib"))
|
2016-10-22 10:00:51 +00:00
|
|
|
(guix (assoc-ref inputs "guix"))
|
2020-08-25 14:38:19 +00:00
|
|
|
(deps (list gcrypt json sqlite git bytes fibers
|
|
|
|
zlib guix))
|
2017-05-10 15:03:49 +00:00
|
|
|
(guile (assoc-ref %build-inputs "guile"))
|
|
|
|
(effective (read-line
|
|
|
|
(open-pipe* OPEN_READ
|
|
|
|
(string-append guile "/bin/guile")
|
|
|
|
"-c" "(display (effective-version))")))
|
2018-09-05 12:46:28 +00:00
|
|
|
(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)))
|
2017-08-17 07:11:14 +00:00
|
|
|
;; Make sure 'cuirass' can find the 'evaluate' command, as
|
|
|
|
;; well as the relevant Guile modules.
|
2016-10-22 10:00:51 +00:00
|
|
|
(wrap-program (string-append out "/bin/cuirass")
|
2017-08-17 07:11:14 +00:00
|
|
|
`("PATH" ":" prefix (,(string-append out "/bin")))
|
2016-10-22 10:00:51 +00:00
|
|
|
`("GUILE_LOAD_PATH" ":" prefix (,mods))
|
2018-09-05 12:46:28 +00:00
|
|
|
`("GUILE_LOAD_COMPILED_PATH" ":" prefix (,objs)))
|
2016-12-19 22:35:05 +00:00
|
|
|
#t))))))
|
2016-10-22 10:00:51 +00:00
|
|
|
(inputs
|
2020-09-24 08:09:48 +00:00
|
|
|
`(("guile" ,guile-3.0/libgc-7)
|
2018-02-14 22:44:28 +00:00
|
|
|
("guile-fibers" ,guile-fibers)
|
2018-09-05 12:46:28 +00:00
|
|
|
("guile-gcrypt" ,guile-gcrypt)
|
2020-06-02 16:27:49 +00:00
|
|
|
("guile-json" ,guile-json-4)
|
2020-09-24 08:26:05 +00:00
|
|
|
("guile-sqlite3" ,guile-sqlite3-dev)
|
2017-08-17 07:11:14 +00:00
|
|
|
("guile-git" ,guile-git)
|
2020-08-25 14:38:19 +00:00
|
|
|
("guile-zlib" ,guile-zlib)
|
2017-08-17 07:11:14 +00:00
|
|
|
;; FIXME: this is propagated by "guile-git", but it needs to be among
|
|
|
|
;; the inputs to add it to GUILE_LOAD_PATH.
|
|
|
|
("guile-bytestructures" ,guile-bytestructures)
|
|
|
|
("guix" ,guix)))
|
2016-10-22 10:00:51 +00:00
|
|
|
(native-inputs
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
("automake" ,automake)
|
2016-12-01 20:10:18 +00:00
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("texinfo" ,texinfo)))
|
2017-09-29 08:00:04 +00: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")))
|
|
|
|
(search-path-specification
|
|
|
|
(variable "SSL_CERT_DIR")
|
|
|
|
(files '("etc/ssl/certs")))))
|
2016-10-22 10:00:51 +00:00
|
|
|
(synopsis "Continuous integration system")
|
|
|
|
(description
|
|
|
|
"Cuirass is a continuous integration tool using GNU Guix. It is
|
|
|
|
intended as a replacement for Hydra.")
|
2017-05-10 15:03:49 +00:00
|
|
|
(home-page "https://www.gnu.org/software/guix/")
|
2016-10-22 10:00:51 +00:00
|
|
|
(license l:gpl3+))))
|