nongnu/packages/apm: newrelic, add aarch64

This commit is contained in:
Grigory Shepelev 2023-12-01 13:57:38 +03:00
parent 1bb2b01003
commit 7672993041

View File

@ -5,25 +5,34 @@
#:use-module (guix licenses))
(define-public newrelic-cli
(package
(name "newrelic-cli")
(version "0.76.3")
(source
(origin
(method url-fetch)
(uri (string-append
"https://download.newrelic.com/install/newrelic-cli/v"
version "/newrelic-cli_" version "_Linux_x86_64.tar.gz"))
(sha256
(base32
"1v9sz89myszlqa6012n0x6vmfj4vvpzmwdp62llfxv204v55wnb4"))))
(build-system binary-build-system)
(arguments
`(#:install-plan
`(("newrelic" "/bin/"))))
(inputs `())
(supported-systems '("x86_64-linux"))
(synopsis "Access the New Relic platform from the comfort of your terminal")
(description "You can use the New Relic CLI to manage entity tags, define workloads, record deployment markers. So you can use the CLI to automate common tasks in your DevOps workflow.")
(home-page "docs.newrelic.com/docs/new-relic-solutions/tutorials/new-relic-cli")
(license apsl2)))
(let ((arch-match (lambda (arch)
(match arch
((or "x86_64-linux") "x86_64")
((or "aarch64-linux") "arm64")))))
(package
(name "newrelic-cli")
(version "0.76.3")
(source
(origin
(method url-fetch)
(uri (string-append
"https://download.newrelic.com/install/newrelic-cli/v"
version "/newrelic-cli_" version "_Linux_"
(arch-match
(or (%current-target-system)
(%current-system)))
".tar.gz"))
(sha256
(base32
"1v9sz89myszlqa6012n0x6vmfj4vvpzmwdp62llfxv204v55wnb4"))))
(build-system binary-build-system)
(arguments
`(#:install-plan
`(("newrelic" "/bin/"))))
(inputs `())
(supported-systems '("x86_64-linux"
"aarch64-linux"))
(synopsis "Access the New Relic platform from the comfort of your terminal")
(description "You can use the New Relic CLI to manage entity tags, define workloads, record deployment markers. So you can use the CLI to automate common tasks in your DevOps workflow.")
(home-page "docs.newrelic.com/docs/new-relic-solutions/tutorials/new-relic-cli")
(license apsl2))))