diff options
author | Franz Geffke <franz@pantherx.org> | 2023-11-06 20:08:14 +0000 |
---|---|---|
committer | Franz Geffke <franz@pantherx.org> | 2023-11-06 20:08:14 +0000 |
commit | 47b4c9c854915df93893dbaa993accfacf9027fe (patch) | |
tree | 4f9b1742d63fcfbc94cc6b8d84f76c4d00c3a0b7 /px/packages/ci.scm | |
parent | 0b426d7b7ed8e176bf464ef9e0683f74a6c9d20f (diff) |
rewrite: apply guix-reference formatting; cleanup some module imports
Diffstat (limited to 'px/packages/ci.scm')
-rw-r--r-- | px/packages/ci.scm | 52 |
1 files changed, 24 insertions, 28 deletions
diff --git a/px/packages/ci.scm b/px/packages/ci.scm index d2e39b7..6943765 100644 --- a/px/packages/ci.scm +++ b/px/packages/ci.scm @@ -1,45 +1,41 @@ -;;; continuous integration related packages for PantherX -;;; Author: Reza Alizadeh Majd (r.majd@pantherx.org) +;;; Reza Alizadeh Majd (r.majd@pantherx.org) (define-module (px packages ci) #:use-module (gnu packages bash) - ; #:use-module (guix build-system go) #:use-module (guix build-system trivial) #:use-module (guix download) #:use-module (guix packages) #:use-module (guix utils) - #:use-module ((guix licenses) #:prefix license:)) + #:use-module ((guix licenses) + #:prefix license:)) (define-public gitlab-runner (package (name "gitlab-runner") (version "v12.8.0") (source - (origin - (method url-fetch) - ; (uri (string-append "https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v" - ; version "/gitlab-runner-v" version ".tar.gz")) - ; (sha256 (base32 "1gb3mflz57niyyn4kj5l4m1g2sa2w4cn8gig5dfr04ns9w9kj8jr")))) - (uri (string-append "https://s3.amazonaws.com/gitlab-runner-downloads/" - version "/binaries/gitlab-runner-linux-386")) - (sha256 (base32 "1lbri42l0bjz21gnq7prhi1g06mqz43qdgdzh5llq8vl49gfz0ap")))) - ; (build-system go-build-system) + (origin + (method url-fetch) + (uri (string-append "https://s3.amazonaws.com/gitlab-runner-downloads/" + version "/binaries/gitlab-runner-linux-386")) + (sha256 + (base32 "1lbri42l0bjz21gnq7prhi1g06mqz43qdgdzh5llq8vl49gfz0ap")))) (build-system trivial-build-system) - (supported-systems '("x86_64-linux" "i686-linux")) ; As long as we download binaries - ; (arguments '(#:import-path "gitlab.com/gitlab-org/gitlab-runner")) - (arguments `( - #:modules ((guix build utils)) - #:builder (begin - (use-modules (guix build utils)) - (let* ((src (assoc-ref %build-inputs "source")) - (bash (string-append (assoc-ref %build-inputs "bash") "/bin/sh")) - (out (assoc-ref %outputs "out")) - (target (string-append out "/bin/gitlab-runner"))) - (setenv "PATH" bash) - (mkdir-p (string-append out "/bin")) - (copy-file src target) - (chmod target #o755) - #t)))) (home-page "https://docs.gitlab.com/runner/") + (supported-systems '("x86_64-linux" "i686-linux")) ;; As long as we download binaries + (arguments + `(#:modules ((guix build utils)) + #:builder (begin + (use-modules (guix build utils)) + (let* ((src (assoc-ref %build-inputs "source")) + (bash (string-append (assoc-ref %build-inputs "bash") + "/bin/sh")) + (out (assoc-ref %outputs "out")) + (target (string-append out "/bin/gitlab-runner"))) + (setenv "PATH" bash) + (mkdir-p (string-append out "/bin")) + (copy-file src target) + (chmod target #o755) #t)))) + (home-page "https://docs.gitlab.com/runner/") (native-inputs `(("bash" ,bash))) (synopsis "GitLab Runner") (description "GitLab Runner is the open source project that is used |