From b2770a136f2ac8cc21155cb15060d8760c42f45e Mon Sep 17 00:00:00 2001 From: Rodion Goritskov Date: Sun, 21 Jul 2024 01:32:13 +0400 Subject: go: Add binary forgejo package --- rodion/packages/go-binary.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 rodion/packages/go-binary.scm (limited to 'rodion/packages') diff --git a/rodion/packages/go-binary.scm b/rodion/packages/go-binary.scm new file mode 100644 index 0000000..06c4b62 --- /dev/null +++ b/rodion/packages/go-binary.scm @@ -0,0 +1,28 @@ +(define-module (rodion packages go-binary) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (gnu packages compression) + #:use-module (guix build-system copy) + #:use-module (gnu packages fonts)) + +(define-public forgejo + (package + (name "forgejo") + (version "7.0.5") + (source (origin + (method url-fetch) + (uri (string-append "https://codeberg.org/forgejo/forgejo/releases/download/" "v" version "/forgejo-" version "-linux-amd64")) + (sha256 + (base32 "18w19870flfl16bgfj2ks4lysamj0f0x9rrlhz85avvdknxakr6x")))) + (build-system copy-build-system) + (arguments + `(#:install-plan '((,(string-append "forgejo-" version "-linux-amd64") "bin/forgejo")) + #:phases (modify-phases %standard-phases + (add-after 'install 'make-executable + (lambda* (#:key outputs #:allow-other-keys) + (chmod (string-append (assoc-ref %outputs "out") "/bin/forgejo") #o555)))))) + (synopsis "Forgejo") + (description "Forgejo") + (home-page "https://codeberg.org/forgejo/forgejo") + (license license:expat))) -- cgit v1.2.3