From 78129fdc0ed1aaa0a323f66c03c9a2b6a9655083 Mon Sep 17 00:00:00 2001 From: Peter Tillemans Date: Mon, 10 Jun 2024 16:51:43 +0200 Subject: [PATCH] add starship package --- snamellit/tools.scm | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/snamellit/tools.scm b/snamellit/tools.scm index 58de38f..53422db 100644 --- a/snamellit/tools.scm +++ b/snamellit/tools.scm @@ -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 +