diff options
author | Rodion Goritskov <rodion.goritskov@gmail.com> | 2024-07-21 01:32:13 +0400 |
---|---|---|
committer | Rodion Goritskov <rodion.goritskov@gmail.com> | 2024-07-21 01:32:13 +0400 |
commit | b2770a136f2ac8cc21155cb15060d8760c42f45e (patch) | |
tree | 51a607a7ded9eb2b8b58a4e5850bc9fb8325a19d | |
parent | ef850b65f6379f4af4a5fb216615925bbf7f312d (diff) |
go: Add binary forgejo package
-rw-r--r-- | rodion/packages/go-binary.scm | 28 |
1 files changed, 28 insertions, 0 deletions
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))) |