From 185405f2c670e3cbb3891459f878969349736d4d Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Sat, 15 Jun 2019 20:14:04 -0400 Subject: [PATCH] gnu: Add spaceship-prompt * gnu/packages/shellutils.scm (spaceship-prompt): New variable. Signed-off-by: Collin J. Doering --- gnu/packages/shellutils.scm | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 68989db4bc..ea75e5300f 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -174,6 +174,46 @@ files, command history, processes, hostnames, bookmarks, git commits, etc..") (home-page "https://github.com/junegunn/fzf") (license license:expat))) +(define-public spaceship-prompt + (package + (name "spaceship-prompt") + (version "3.11.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/denysdovhan/spaceship-prompt.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "171gmqnwbyan1wslbh4aky1gdqfbw3gfsfscxfnpgk0j114a6jfj")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (delete 'check) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (func-path (string-append out "/share/zsh/site-functions")) + (install-path (string-append out "/lib/spaceship-prompt"))) + (for-each mkdir-p `(,func-path ,install-path)) + (for-each (lambda (dir) + (copy-recursively dir (string-append install-path "/" dir))) + '("lib" "modules" "sections")) + (copy-file "spaceship.zsh" (string-append install-path "/spaceship.zsh")) + (symlink (string-append install-path "/spaceship.zsh") + (string-append func-path "/prompt_spaceship_setup")))))))) + (synopsis "Zsh prompt for Astronauts") + (description + "Spaceship is a minimalistic, powerful and extremely customizable +Zsh prompt. It combines everything you may need for convenient work, +without unecessary complications, like a real spaceship.") + (home-page "https://github.com/denysdovhan/spaceship-prompt") + (license license:expat))) + (define-public envstore (package (name "envstore")