channel-q/starship.scm

43 lines
1.5 KiB
Scheme

(define-module (starship)
#:use-module (gnu packages base)
#:use-module (gnu packages compression)
#:use-module (gnu packages gcc)
#:use-module (guix download)
#:use-module (guix packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (nonguix build-system binary))
(define-public starship
(package
(name "starship-bin")
(version "1.12.0")
(source
(origin
(method url-fetch)
(uri (string-append
"https://github.com/starship/starship/releases/download/v"
version
"/starship-x86_64-unknown-linux-gnu.tar.gz"))
(sha256
(base32
"0zq5mn8m3jaqhx1px108izh5ibi23jcwy0wragip8dy1swb3kzr3"))))
(build-system binary-build-system)
(arguments
`(#:install-plan
`(("starship" "/bin/"))
#:patchelf-plan
`(("starship" ("gcc:lib" "glibc")))
#:phases
(modify-phases %standard-phases
(replace 'unpack
(lambda* (#:key inputs #:allow-other-keys)
(invoke "tar" "-xvzf" (assoc-ref inputs "source")))))))
(inputs
`(("gcc:lib" ,gcc "lib")
("glibc" ,glibc)))
(native-inputs
`(("gzip" ,gzip)))
(synopsis "Starship is the minimal, blazing fast, and extremely customizable prompt for any shell!")
(description "Starship is the minimal, blazing fast, and extremely customizable prompt for any shell!")
(home-page "https://github.com/starship/starship")
(license license:isc)))