Skip to content
Snippets Groups Projects
Commit a413bc8b authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

hydra: Update Guix job set.

* build-aux/hydra/guix.scm (tarball-package): Remove 'nix-checkout'
  parameter.  Remove 'arguments', 'native-inputs', and 'location'
  fields.  Adjust caller accordingly.
  (hydra-jobs): Remove 'nix-checkout'.
parent 2d51666b
No related branches found
No related tags found
No related merge requests found
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
...@@ -68,25 +68,10 @@ (define* (package->alist store package system ...@@ -68,25 +68,10 @@ (define* (package->alist store package system
(home-page . ,(package-home-page package)) (home-page . ,(package-home-page package))
(maintainers . ("bug-guix@gnu.org")))) (maintainers . ("bug-guix@gnu.org"))))
(define (tarball-package checkout nix-checkout) (define (tarball-package checkout)
"Return a package that does `make distcheck' from CHECKOUT, a directory "Return a package that does `make distcheck' from CHECKOUT, a directory
containing a Git checkout of Guix." containing a Git checkout of Guix."
(let ((dist (dist-package guix checkout))) (dist-package guix checkout))
(package (inherit dist)
(location (source-properties->location (current-source-location)))
(arguments (substitute-keyword-arguments (package-arguments dist)
((#:phases p)
`(alist-cons-before
'autoreconf 'set-nix-submodule
(lambda _
;; Tell Git to use the Nix checkout that Hydra gave us.
(zero?
(system* "git" "config" "submodule.nix-upstream.url"
,nix-checkout)))
,p))))
(native-inputs `(("git" ,git)
("graphviz" ,graphviz)
,@(package-native-inputs dist))))))
(define (hydra-jobs store arguments) (define (hydra-jobs store arguments)
"Return Hydra jobs." "Return Hydra jobs."
...@@ -104,13 +89,9 @@ (define systems ...@@ -104,13 +89,9 @@ (define systems
(define guix-checkout (define guix-checkout
(assq-ref arguments 'guix)) (assq-ref arguments 'guix))
(define nix-checkout (let ((guix (assq-ref guix-checkout 'file-name)))
(assq-ref arguments 'nix)) (format (current-error-port) "using checkout ~s (~s)~%"
guix-checkout guix)
(format (current-error-port) "using checkout ~s (Nix: ~s)~%"
guix-checkout nix-checkout)
(let ((guix (assq-ref guix-checkout 'file-name))
(nix (assq-ref nix-checkout 'file-name)))
`((tarball . ,(cute package->alist store `((tarball . ,(cute package->alist store
(tarball-package guix nix) (tarball-package guix)
(%current-system)))))) (%current-system))))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment