mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 06:08:37 +02:00
adding up-to-date gitlab-runner from hpc-non-free
This commit is contained in:
parent
3456368ed3
commit
f66335f354
1 changed files with 44 additions and 0 deletions
44
glicid/packages/gitlab.scm
Normal file
44
glicid/packages/gitlab.scm
Normal file
|
@ -0,0 +1,44 @@
|
|||
(define-module (glicid packages gitlab)
|
||||
#:use-module (guix)
|
||||
#:use-module (ice-9 match)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix build-system trivial)
|
||||
#:use-module (gnu packages bash)
|
||||
#:use-module (gnu packages version-control))
|
||||
|
||||
(define-public gitlab-runner
|
||||
(package
|
||||
(name "gitlab-runner")
|
||||
(version "15.8.1")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://" name "-downloads.s3.amazonaws.com/v" version "/binaries/" name "-linux-amd64"))
|
||||
(file-name (string-append name "-linux-amd64"))
|
||||
(sha256 (base32 "0dbkji70wxn61q1zkayr4al365lz09nd1f8b06dady3yfplr91yv"))))
|
||||
(build-system trivial-build-system)
|
||||
(arguments
|
||||
'(#:modules ((guix build utils))
|
||||
#:builder (begin
|
||||
(use-modules (guix build utils))
|
||||
(let* ((source (assoc-ref %build-inputs "source"))
|
||||
(out (assoc-ref %outputs "out"))
|
||||
(install-dir (string-append out "/bin"))
|
||||
(executable (string-append install-dir "/gitlab-runner"))
|
||||
(bash (string-append (assoc-ref %build-inputs "bash") "/bin/"))
|
||||
(git-dir (string-append (assoc-ref %build-inputs "git") "/bin/")))
|
||||
(setenv "PATH" (string-append (getenv "PATH") ":" bash))
|
||||
(mkdir-p install-dir)
|
||||
(copy-file source executable)
|
||||
(chmod executable #o555)
|
||||
(wrap-program executable `("PATH" ":" prefix (,git-dir)))))))
|
||||
(inputs (list git bash))
|
||||
(synopsis "Gitlab Runner")
|
||||
(description
|
||||
"The official GitLab Runner written in Go. It runs tests and sends the
|
||||
results to GitLab. GitLab CI is the open-source continuous integration
|
||||
service included with GitLab that coordinates the testing.")
|
||||
(home-page "https://gitlab.com/gitlab-org/gitlab-runner")
|
||||
(license license:expat)))
|
Loading…
Add table
Reference in a new issue