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