2015-04-19 19:59:37 +02:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
|
2016-10-22 12:00:51 +02:00
|
|
|
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
2017-01-09 18:33:28 +01:00
|
|
|
;;; Copyright © 2016, 2017 Mathieu Lirzin <mthl@gnu.org>
|
2017-01-30 13:59:34 +01:00
|
|
|
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
2017-08-17 09:11:14 +02:00
|
|
|
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
2015-04-19 19:59:37 +02: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)
|
|
|
|
#:use-module (gnu packages mail)
|
|
|
|
#:use-module (gnu packages package-management)
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
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 18:27:24 +02:00
|
|
|
#:use-module (gnu packages tls)
|
2016-12-01 21:10:18 +01:00
|
|
|
#:use-module (gnu packages texinfo)
|
2015-04-19 19:59:37 +02:00
|
|
|
#:use-module (gnu packages version-control)
|
|
|
|
#:use-module (gnu packages web)
|
|
|
|
#:use-module (gnu packages xml)
|
|
|
|
#:use-module (guix build-system gnu))
|
|
|
|
|
|
|
|
(define-public hydra
|
2016-09-13 18:59:41 +02:00
|
|
|
(let ((commit "1ff48da3d3d4a425063f5b7dd0b89d35270f8932"))
|
2015-04-19 19:59:37 +02:00
|
|
|
(package
|
|
|
|
(name "hydra")
|
2016-09-13 18:59:41 +02:00
|
|
|
(version (string-append "20151030." (string-take commit 7)))
|
2015-04-19 19:59:37 +02:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/NixOS/hydra")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (string-append name "-" version))
|
2016-04-08 14:18:13 +02:00
|
|
|
(patches (search-patches
|
|
|
|
;; TODO: Remove once we have a darcs input
|
2016-09-13 18:59:41 +02:00
|
|
|
"hydra-disable-darcs-test.patch"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0ni8i8v1nxxfr51rz8m6znwpbm77vr7i05k506hmgmg32r938lap"))))
|
2015-04-19 19:59:37 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("unzip" ,unzip)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
;; For documentation
|
|
|
|
("dblatex" ,dblatex)
|
|
|
|
("xsltproc" ,libxslt)
|
|
|
|
("docbook-xsl" ,docbook-xsl)
|
|
|
|
;; For bootstrap
|
|
|
|
("autoconf" ,autoconf)
|
|
|
|
("automake" ,automake)
|
|
|
|
("libtool" ,libtool)
|
|
|
|
;; For tests
|
|
|
|
("git" ,git)
|
|
|
|
("subversion" ,subversion)
|
|
|
|
("mercurial" ,mercurial)
|
|
|
|
("bazaar" ,bazaar)))
|
|
|
|
(inputs
|
2016-09-13 18:59:41 +02:00
|
|
|
`(("libpqxx" ,libpqxx)
|
|
|
|
("perl" ,perl)
|
2015-04-19 19:59:37 +02:00
|
|
|
("guile" ,guile-2.0)
|
|
|
|
("openssl" ,openssl)
|
|
|
|
("bzip2" ,bzip2)
|
|
|
|
("gzip" ,gzip)
|
|
|
|
("sed" ,sed)
|
|
|
|
("starman" ,starman)
|
|
|
|
("git" ,git)
|
|
|
|
("subversion" ,subversion)
|
|
|
|
("mercurial" ,mercurial)
|
|
|
|
("bazaar" ,bazaar)
|
|
|
|
("nix" ,nix)
|
|
|
|
;; Lots o' perl modules...
|
|
|
|
("perl-catalyst-action-rest" ,perl-catalyst-action-rest)
|
|
|
|
("perl-catalyst-authentication-store-dbix-class"
|
|
|
|
,perl-catalyst-authentication-store-dbix-class)
|
|
|
|
("perl-catalyst-devel" ,perl-catalyst-devel)
|
|
|
|
("perl-catalyst-dispatchtype-regex" ,perl-catalyst-dispatchtype-regex)
|
|
|
|
("perl-catalyst-plugin-accesslog" ,perl-catalyst-plugin-accesslog)
|
|
|
|
("perl-catalyst-plugin-authorization-roles"
|
|
|
|
,perl-catalyst-plugin-authorization-roles)
|
|
|
|
("perl-catalyst-plugin-captcha" ,perl-catalyst-plugin-captcha)
|
|
|
|
("perl-catalyst-plugin-session-state-cookie"
|
|
|
|
,perl-catalyst-plugin-session-state-cookie)
|
|
|
|
("perl-catalyst-plugin-session-store-fastmmap"
|
|
|
|
,perl-catalyst-plugin-session-store-fastmmap)
|
|
|
|
("perl-catalyst-plugin-stacktrace" ,perl-catalyst-plugin-stacktrace)
|
|
|
|
("perl-catalyst-traitfor-request-proxybase"
|
|
|
|
,perl-catalyst-traitfor-request-proxybase)
|
|
|
|
("perl-catalyst-view-download" ,perl-catalyst-view-download)
|
|
|
|
("perl-catalyst-view-json" ,perl-catalyst-view-json)
|
|
|
|
("perl-catalyst-view-tt" ,perl-catalyst-view-tt)
|
|
|
|
("perl-catalystx-roleapplicator" ,perl-catalystx-roleapplicator)
|
|
|
|
("perl-catalystx-script-server-starman"
|
|
|
|
,perl-catalystx-script-server-starman)
|
|
|
|
("perl-crypt-randpasswd" ,perl-crypt-randpasswd)
|
|
|
|
("perl-data-dump" ,perl-data-dump)
|
|
|
|
("perl-datetime" ,perl-datetime)
|
|
|
|
("perl-dbd-pg" ,perl-dbd-pg)
|
|
|
|
("perl-dbd-sqlite" ,perl-dbd-sqlite)
|
|
|
|
("perl-digest-sha1" ,perl-digest-sha1)
|
|
|
|
("perl-email-mime" ,perl-email-mime)
|
|
|
|
("perl-email-sender" ,perl-email-sender)
|
|
|
|
("perl-file-slurp" ,perl-file-slurp)
|
|
|
|
("perl-io-compress" ,perl-io-compress)
|
|
|
|
("perl-ipc-run" ,perl-ipc-run)
|
|
|
|
("perl-json-any" ,perl-json-any)
|
|
|
|
("perl-json-xs" ,perl-json-xs)
|
|
|
|
("perl-libwww" ,perl-libwww)
|
|
|
|
("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
|
|
|
|
("perl-net-amazon-s3" ,perl-net-amazon-s3)
|
2016-09-13 18:59:41 +02:00
|
|
|
("perl-net-statsd" ,perl-net-statsd)
|
2015-04-19 19:59:37 +02:00
|
|
|
("perl-padwalker" ,perl-padwalker)
|
|
|
|
("perl-readonly" ,perl-readonly)
|
|
|
|
("perl-set-scalar" ,perl-set-scalar)
|
|
|
|
("perl-sql-splitstatement" ,perl-sql-splitstatement)
|
|
|
|
("perl-sys-hostname-long" ,perl-sys-hostname-long)
|
|
|
|
("perl-text-diff" ,perl-text-diff)
|
|
|
|
("perl-text-table" ,perl-text-table)
|
|
|
|
("perl-xml-simple" ,perl-xml-simple)))
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags
|
|
|
|
(let ((docbook (assoc-ref %build-inputs "docbook-xsl")))
|
|
|
|
(list (string-append "--with-docbook-xsl="
|
|
|
|
docbook "/xml/xsl/docbook-xsl-"
|
|
|
|
,(package-version docbook-xsl))
|
|
|
|
(string-append "--docdir=" %output
|
|
|
|
"/doc/hydra-" ,version)))
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
(add-after
|
|
|
|
'unpack 'bootstrap
|
|
|
|
(lambda _ (zero? (system* "autoreconf" "-vfi"))))
|
|
|
|
(add-before
|
|
|
|
'check 'check-setup
|
|
|
|
(lambda _ (setenv "LOGNAME" "test.log")))
|
|
|
|
(add-after
|
|
|
|
'install 'wrap-program
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(for-each
|
|
|
|
(lambda (file)
|
|
|
|
(wrap-program file
|
|
|
|
`("PATH" ":" prefix
|
|
|
|
(,(string-append out "/bin")
|
|
|
|
,@(map (lambda (i)
|
|
|
|
(string-append (assoc-ref inputs i)
|
|
|
|
"/bin"))
|
|
|
|
'("subversion" "git" "bazaar"
|
|
|
|
"mercurial" "coreutils" "gzip"
|
|
|
|
"sed" "unzip" "nix"))))
|
|
|
|
`("PERL5LIB" ":" prefix
|
|
|
|
(,(string-append out "/libexec/hydra/lib")
|
|
|
|
,@(search-path-as-string->list
|
|
|
|
(getenv "PERL5LIB"))))
|
|
|
|
`("HYDRA_RELEASE" = (,,version))
|
|
|
|
`("HYDRA_HOME" =
|
|
|
|
(,(string-append out "/libexec/hydra")))
|
|
|
|
`("NIX_RELEASE" = (,,(package-version nix)))))
|
|
|
|
(find-files (string-append out "/bin")
|
|
|
|
".*"))))))))
|
|
|
|
(home-page "https://nixos.org/hydra")
|
|
|
|
(synopsis "Continuous build system")
|
|
|
|
(description
|
|
|
|
"Hydra is a tool for continuous integration testing and software
|
|
|
|
release that uses a purely functional language to describe build jobs and
|
|
|
|
their dependencies.")
|
|
|
|
(license l:gpl3+))))
|
2016-10-22 12:00:51 +02:00
|
|
|
|
|
|
|
(define-public cuirass
|
2017-09-19 12:13:35 +02:00
|
|
|
(let ((commit "87ad259dba7de38b6e3ab954cd7b2f655358d877")
|
|
|
|
(revision "8"))
|
2016-10-22 12:00:51 +02:00
|
|
|
(package
|
|
|
|
(name "cuirass")
|
|
|
|
(version (string-append "0.0.1-" revision "." (string-take commit 7)))
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
2017-05-10 17:03:49 +02:00
|
|
|
(url "https://git.savannah.gnu.org/git/guix/guix-cuirass.git")
|
2016-10-22 12:00:51 +02:00
|
|
|
(commit commit)))
|
|
|
|
(file-name (string-append name "-" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2017-09-19 12:13:35 +02:00
|
|
|
"127pvbxbh6b6ar43cdgia9qpzzpldq4wm3igsxb1ycxfsdqnjrnz"))))
|
2016-10-22 12:00:51 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2017-05-10 17:03:49 +02:00
|
|
|
'(#:modules ((guix build utils)
|
|
|
|
(guix build gnu-build-system)
|
|
|
|
(ice-9 rdelim)
|
|
|
|
(ice-9 popen))
|
|
|
|
|
|
|
|
#:phases
|
2016-10-22 12:00:51 +02:00
|
|
|
(modify-phases %standard-phases
|
2017-01-09 18:33:28 +01: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 15:36:28 +02:00
|
|
|
(add-after 'disable-repo-tests 'patch-/bin/sh
|
|
|
|
(lambda _
|
|
|
|
(substitute* "build-aux/git-version-gen"
|
|
|
|
(("#!/bin/sh") (string-append "#!" (which "sh"))))
|
|
|
|
#t))
|
|
|
|
(add-after 'patch-/bin/sh 'bootstrap
|
2016-10-22 12:00:51 +02:00
|
|
|
(lambda _ (zero? (system* "sh" "bootstrap"))))
|
|
|
|
(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"))
|
|
|
|
(json (assoc-ref inputs "guile-json"))
|
|
|
|
(sqlite (assoc-ref inputs "guile-sqlite3"))
|
2017-08-17 09:11:14 +02:00
|
|
|
(git (assoc-ref inputs "guile-git"))
|
|
|
|
(bytes (assoc-ref inputs "guile-bytestructures"))
|
2016-10-22 12:00:51 +02:00
|
|
|
(guix (assoc-ref inputs "guix"))
|
2017-05-10 17:03:49 +02:00
|
|
|
(guile (assoc-ref %build-inputs "guile"))
|
|
|
|
(effective (read-line
|
|
|
|
(open-pipe* OPEN_READ
|
|
|
|
(string-append guile "/bin/guile")
|
|
|
|
"-c" "(display (effective-version))")))
|
|
|
|
(mods (string-append json "/share/guile/site/"
|
2017-08-17 09:11:14 +02:00
|
|
|
effective ":"
|
|
|
|
git "/share/guile/site/"
|
|
|
|
effective ":"
|
|
|
|
bytes "/share/guile/site/"
|
2017-05-10 17:03:49 +02:00
|
|
|
effective ":"
|
|
|
|
sqlite "/share/guile/site/"
|
|
|
|
effective ":"
|
|
|
|
guix "/share/guile/site/"
|
|
|
|
effective)))
|
2017-08-17 09:11:14 +02:00
|
|
|
;; Make sure 'cuirass' can find the 'evaluate' command, as
|
|
|
|
;; well as the relevant Guile modules.
|
2016-10-22 12:00:51 +02:00
|
|
|
(wrap-program (string-append out "/bin/cuirass")
|
2017-08-17 09:11:14 +02:00
|
|
|
`("PATH" ":" prefix (,(string-append out "/bin")))
|
2016-10-22 12:00:51 +02:00
|
|
|
`("GUILE_LOAD_PATH" ":" prefix (,mods))
|
2016-12-19 23:35:05 +01:00
|
|
|
`("GUILE_LOAD_COMPILED_PATH" ":" prefix (,mods)))
|
|
|
|
#t))))))
|
2016-10-22 12:00:51 +02:00
|
|
|
(inputs
|
2017-05-10 17:03:49 +02:00
|
|
|
`(("guile" ,guile-2.2)
|
2017-05-13 21:49:01 +02:00
|
|
|
("guile-json" ,guile-json)
|
2016-10-22 12:00:51 +02:00
|
|
|
("guile-sqlite3" ,guile-sqlite3)
|
2017-08-17 09:11:14 +02:00
|
|
|
("guile-git" ,guile-git)
|
|
|
|
;; 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 12:00:51 +02:00
|
|
|
(native-inputs
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
("automake" ,automake)
|
2016-12-01 21:10:18 +01:00
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("texinfo" ,texinfo)))
|
2016-10-22 12:00:51 +02: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 17:03:49 +02:00
|
|
|
(home-page "https://www.gnu.org/software/guix/")
|
2016-10-22 12:00:51 +02:00
|
|
|
(license l:gpl3+))))
|