aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/shells/zsh/spaceship-prompt/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/shells/zsh/spaceship-prompt/default.nix')
-rw-r--r--nixpkgs/pkgs/shells/zsh/spaceship-prompt/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/shells/zsh/spaceship-prompt/default.nix b/nixpkgs/pkgs/shells/zsh/spaceship-prompt/default.nix
new file mode 100644
index 00000000000..feb82790e87
--- /dev/null
+++ b/nixpkgs/pkgs/shells/zsh/spaceship-prompt/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+ pname = "spaceship-prompt";
+ version = "3.11.2";
+
+ src = fetchFromGitHub {
+ owner = "denysdovhan";
+ repo = "spaceship-prompt";
+ sha256 = "1q7m9mmg82n4fddfz01y95d5n34xnzhrnn1lli0vih39sgmzim9b";
+ rev = "v${version}";
+ };
+
+ installPhase = ''
+ install -D -m644 LICENSE.md "$out/share/licenses/spaceship-prompt/LICENSE"
+ install -D -m644 README.md "$out/share/doc/spaceship-prompt/README.md"
+ find docs -type f -exec install -D -m644 {} "$out/share/doc/spaceship-prompt/{}" \;
+ find lib -type f -exec install -D -m644 {} "$out/lib/spaceship-prompt/{}" \;
+ find scripts -type f -exec install -D -m644 {} "$out/lib/spaceship-prompt/{}" \;
+ find sections -type f -exec install -D -m644 {} "$out/lib/spaceship-prompt/{}" \;
+ install -D -m644 spaceship.zsh "$out/lib/spaceship-prompt/spaceship.zsh"
+ install -d "$out/share/zsh/themes/"
+ ln -s "$out/lib/spaceship-prompt/spaceship.zsh" "$out/share/zsh/themes/spaceship.zsh-theme"
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Zsh prompt for Astronauts";
+ homepage = "https://github.com/denysdovhan/spaceship-prompt/";
+ license = licenses.mit;
+ platforms = platforms.linux ++ platforms.darwin;
+ maintainers = with maintainers; [ nyanloutre ];
+ };
+}