add starship package

This commit is contained in:
Peter Tillemans 2024-06-10 16:51:43 +02:00
parent 390123427c
commit 78129fdc0e

View file

@ -56,9 +56,6 @@
#:phases
(modify-phases
%standard-phases
;; this is required because standard unpack expects
;; the archive to contain a directory with everything inside it,
;; while babashka's release .tar.gz only contains the `bb` binary.
(replace 'unpack
(lambda* (#:key inputs #:allow-other-keys)
(system* (which "unzip")
@ -111,9 +108,6 @@ in parallel across providers.")
#:phases
(modify-phases
%standard-phases
;; this is required because standard unpack expects
;; the archive to contain a directory with everything inside it,
;; while babashka's release .tar.gz only contains the `bb` binary.
(replace 'unpack
(lambda* (#:key inputs #:allow-other-keys)
(system* (which "unzip")
@ -128,4 +122,34 @@ in parallel across providers.")
(license #f)))
vault
(define-public starship
(package
(name "starship")
(version "1.19.0")
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/starship/starship/releases/download/v"
version
"/starship-x86_64-unknown-linux-musl.tar.gz"))
(sha256
(base32
"0nk7da0lyqfk6ikkc946vz6k6j9bi58si1z7119237nqsw336a54"))))
(build-system binary-build-system)
(supported-systems '("x86_64-linux"))
(arguments
'(
#:install-plan
`(("." ("starship") "bin/"))
))
(synopsis "Tool to create a dynamic prompt in the terminal.")
(description
"Starship is a blazingly fast terminal prompt.")
(home-page "https://starship.rs")
(license license:isc)))
starship