summaryrefslogtreecommitdiff
path: root/px/packages/ci.scm
diff options
context:
space:
mode:
authorFranz Geffke <franz@pantherx.org>2023-06-25 16:07:34 +0100
committerFranz Geffke <franz@pantherx.org>2023-06-25 16:07:34 +0100
commit54b4056ac571611892c743b65f4c47dc298c49da (patch)
tree36e4a84137d2b9bc9a241cf82563da6114bf6189 /px/packages/ci.scm
initial commit
Diffstat (limited to 'px/packages/ci.scm')
-rw-r--r--px/packages/ci.scm47
1 files changed, 47 insertions, 0 deletions
diff --git a/px/packages/ci.scm b/px/packages/ci.scm
new file mode 100644
index 0000000..d2e39b7
--- /dev/null
+++ b/px/packages/ci.scm
@@ -0,0 +1,47 @@
+;;; continuous integration related packages for PantherX
+;;; Author: 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:))
+
+(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)
+ (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/")
+ (native-inputs `(("bash" ,bash)))
+ (synopsis "GitLab Runner")
+ (description "GitLab Runner is the open source project that is used
+to run your jobs and send the results back to GitLab.")
+ (license license:expat)))