From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: [PATCH 1/2] gnu: Add Cuirass. Date: Wed, 26 Oct 2016 15:05:57 +0200 Message-ID: <20161026130558.31924-2-mthl@gnu.org> References: <20161026130558.31924-1-mthl@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.9.3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzNuA-0007mb-KK for guix-devel@gnu.org; Wed, 26 Oct 2016 09:06:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzNu5-0005Rx-Jx for guix-devel@gnu.org; Wed, 26 Oct 2016 09:06:06 -0400 Received: from v-zimmta02.u-bordeaux.fr ([147.210.215.20]:41000) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzNu5-0005RB-Dd for guix-devel@gnu.org; Wed, 26 Oct 2016 09:06:01 -0400 Received: from v-zimmta02.u-bordeaux.fr (localhost [127.0.0.1]) by v-zimmta02.u-bordeaux.fr (Postfix) with ESMTP id 82EEE800B07 for ; Wed, 26 Oct 2016 15:05:59 +0200 (CEST) Received: from localhost.localdomain (mek33-4-82-236-46-88.fbx.proxad.net [82.236.46.88]) by v-zimmta02.u-bordeaux.fr (Postfix) with ESMTPSA id 4D639800042 for ; Wed, 26 Oct 2016 15:05:59 +0200 (CEST) In-Reply-To: <20161026130558.31924-1-mthl@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org This is a multi-part message in MIME format. --------------2.9.3 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: quoted-printable * gnu/packages/ci.scm (cuirass): New variable. Co-authored-by: Jan Nieuwenhuizen --- gnu/packages/ci.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 51 insertions(+) --------------2.9.3 Content-Type: text/x-patch; name="0001-gnu-Add-Cuirass.patch" Content-Disposition: inline; filename="0001-gnu-Add-Cuirass.patch" Content-Transfer-Encoding: quoted-printable diff --git a/gnu/packages/ci.scm b/gnu/packages/ci.scm index 3f54ff1..3cacc23 100644 --- a/gnu/packages/ci.scm +++ b/gnu/packages/ci.scm @@ -1,5 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2015 Eric Bavier +;;; Copyright =C2=A9 2016 Jan Nieuwenhuizen +;;; Copyright =C2=A9 2016 Mathieu Lirzin ;;; ;;; This file is part of GNU Guix. ;;; @@ -181,3 +183,52 @@ release that uses a purely functional language to describe build jobs an= d their dependencies.") (license l:gpl3+)))) + +(define-public cuirass + (let ((commit "24d45055077911fb92aaa67762d442af44d20403") + (revision "1")) + (package + (name "cuirass") + (version (string-append "0.0.1-" revision "." (string-take commit = 7))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://notabug.org/mthl/cuirass") + (commit commit))) + (file-name (string-append name "-" version)) + (sha256 + (base32 + "0r7jnrnkxgwj9iplp9l129xwi2w6zg0ndavm0sxz7ni49qsrx89y"= )))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'bootstrap + (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 modul= es. + (let* ((out (assoc-ref outputs "out")) + (sqlite (assoc-ref inputs "guile-sqlite3")) + (guix (assoc-ref inputs "guix")) + (mods (string-append out "/share/guile/site/2.0:= " + sqlite "/share/guile/site/2= .0:" + guix "/share/guile/site/2.0= "))) + (wrap-program (string-append out "/bin/cuirass") + `("GUILE_LOAD_PATH" ":" prefix (,mods)) + `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,mods)))))))= )) + (inputs + `(("guile" ,guile-2.0) + ("guile-json" ,guile-json) + ("guile-sqlite3" ,guile-sqlite3) + ("guix" ,guix))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("pkg-config" ,pkg-config))) + (synopsis "Continuous integration system") + (description + "Cuirass is a continuous integration system which uses GNU Guix. = It is +intended as replacement for Hydra.") + (home-page "https://notabug.org/mthl/cuirass") + (license l:gpl3+)))) --------------2.9.3--