diff --git a/README.org b/README.org index ee89873..7ab1cb5 100644 --- a/README.org +++ b/README.org @@ -24,7 +24,7 @@ I'll probably push what I can upstream when I figure Guix out. | [[https://github.com/atreyasha/i3-balance-workspace][i3-balance-workspace]] | Works | Tests fail | | [[https://github.com/tmux-python/tmuxp][tmuxp]] | Works | Tests fail | | [[https://github.com/hroptatyr/dateutils][dateutils]] | Works | Tests fail | -| [[https://starship.rs/][starship]] | Works | Tests fail | +| [[https://starship.rs/][starship]] | Works | Installation from binaries | | [[https://github.com/gauteh/lieer][lieer]] | Works | Tests fail for dependencies | | [[https://activitywatch.net/][ActivityWatch]] | Works... | Except for aw-qt. Installation from binaries | | [[https://github.com/yt-dlp/yt-dlp][yt-dlp]] | Removed | Removed in favour of the upstream definition | diff --git a/starship.scm b/starship.scm new file mode 100644 index 0000000..3b41e6e --- /dev/null +++ b/starship.scm @@ -0,0 +1,43 @@ +(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)))