summaryrefslogtreecommitdiff
path: root/guix-packages/starship.scm
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-01-21 14:10:35 +0200
committerThanos Apollo <[email protected]>2023-01-21 14:10:35 +0200
commite646bb9820e7107e629a96a98392837e771ef10a (patch)
treef78a1c6f421dadfb2082f7e9d7d65fcd7ddedf9e /guix-packages/starship.scm
parent95f5f5083c24cbed08807558ff6028b2e6bdc010 (diff)
guix-packages:Remove testing, add starship
Diffstat (limited to 'guix-packages/starship.scm')
-rw-r--r--guix-packages/starship.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/guix-packages/starship.scm b/guix-packages/starship.scm
new file mode 100644
index 0000000..7293dc3
--- /dev/null
+++ b/guix-packages/starship.scm
@@ -0,0 +1,36 @@
+
+(define-module (starship)
+ #:use-module (gnu packages)
+ #:use-module (gnu packages build-tools)
+ #:use-module (guix build-system copy)
+ #:use-module (guix download)
+ #:use-module (guix git-download)
+ #:use-module (guix licenses)
+ #:use-module (guix packages)
+ #:use-module (guix gexp)
+ #:use-module (guix build-system gnu)
+ #:use-module (guix build-system asdf))
+
+;; A temporary fix based on this patch:
+;;
+;;https://lists.gnu.org/archive/html/guix-patches/2021-10/msg00762.html
+
+(define-public starship-prompt-bin
+ (package
+ (name "starship")
+ (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-musl.tar.gz"))
+ (sha256
+ (base32
+ "0w2w20lxx8l662xdcvjdb033sglhgfg3dnm5jfjb5z5sixwd37x0"))))
+ (build-system asdf-build-system/source)
+ (synopsis "binary of starship -- The cross-shell prompt for astronauts.")
+ (description "Cross shell prompt")
+ (home-page "https://starship.rs/")
+ (license gpl2+)))
+
+starship-prompt-bin