From 426badcf15e4138887c947ae2f540a8c5d33e52e Mon Sep 17 00:00:00 2001 From: hashirama Date: Sat, 1 Jun 2024 01:12:00 -0400 Subject: [PATCH] add forgejo-bin --- packages/forgejo-bin.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 packages/forgejo-bin.scm diff --git a/packages/forgejo-bin.scm b/packages/forgejo-bin.scm new file mode 100644 index 0000000..31d3b92 --- /dev/null +++ b/packages/forgejo-bin.scm @@ -0,0 +1,39 @@ +(use-modules (gnu) + (guix gexp) + (guix packages) + (guix download) + (guix build utils) + (guix build-system gnu) + (guix build-system copy) + (nonguix build-system binary) + ((guix licenses) #:prefix license:)) + +(use-package-modules version-control gcc bash certs admin linux) +(use-service-modules certbot shepherd configuration networking ssh web) + +(define forgejo + (let ((version "1.20.5-0")) + (package + (name "forgejo") + (version version) + (source + (origin + (method url-fetch) + (uri (string-append "https://codeberg.org/forgejo/forgejo/releases/download/v" version "/forgejo-" version "-linux-amd64")) + (file-name "forgejo") + (sha256 + (base32 "0jj13qwq67acbqsina3gqi5fr2lsm80jxjmm26i1ixxhf0r0w641")))) + (build-system binary-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'chmod-to-allow-patchelf + (lambda _ + (chmod "forgejo" #o755)))) + #:install-plan `(("forgejo" "bin/")))) + (propagated-inputs (list git git-lfs)) + (home-page "https://forgejo.org") + (synopsis "A self-hosted lightweight software forge.") + (description "Forgejo is a self-hosted lightweight software forge.") + (license license:expat)))) + +forgejo