about summary refs log tree commit diff
path: root/pkgs/shells/zsh/spaceship-prompt
diff options
context:
space:
mode:
authorPaul TREHIOU <paul@nyanlout.re>2018-11-11 02:17:57 +0100
committerSilvan Mosberger <infinisil@icloud.com>2018-11-11 02:17:57 +0100
commit0f21becbabc8c2a2d2106b7f855830a2567ef4a1 (patch)
treef1217ad96d51867312905432adb6bd0ff59418bc /pkgs/shells/zsh/spaceship-prompt
parent337f8f7301ae4ecc0340060a86719989e4bdbb35 (diff)
downloadnixlib-0f21becbabc8c2a2d2106b7f855830a2567ef4a1.tar
nixlib-0f21becbabc8c2a2d2106b7f855830a2567ef4a1.tar.gz
nixlib-0f21becbabc8c2a2d2106b7f855830a2567ef4a1.tar.bz2
nixlib-0f21becbabc8c2a2d2106b7f855830a2567ef4a1.tar.lz
nixlib-0f21becbabc8c2a2d2106b7f855830a2567ef4a1.tar.xz
nixlib-0f21becbabc8c2a2d2106b7f855830a2567ef4a1.tar.zst
nixlib-0f21becbabc8c2a2d2106b7f855830a2567ef4a1.zip
spaceship-prompt: init at 3.7.1 (#50177)
* spaceship-prompt: init at 3.7.1

* spaceship-prompt: useless zsh argument
Diffstat (limited to 'pkgs/shells/zsh/spaceship-prompt')
-rw-r--r--pkgs/shells/zsh/spaceship-prompt/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/spaceship-prompt/default.nix b/pkgs/shells/zsh/spaceship-prompt/default.nix
new file mode 100644
index 000000000000..312b1e79f49c
--- /dev/null
+++ b/pkgs/shells/zsh/spaceship-prompt/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec{
+  name = "spaceship-prompt-${version}";
+  version = "3.7.1";
+
+  src = fetchFromGitHub {
+    owner = "denysdovhan";
+    repo = "spaceship-prompt";
+    sha256 = "0laihax18bs254rm2sww5wkjbmkp4m5c8aicgqpi4diz7difxk6z";
+    rev = "aaa34aeab9ba0a99416788f627ec9aeffba392f0";
+  };
+
+  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/halfo/lambda-mod-zsh-theme/;
+    license = licenses.mit;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ nyanloutre ];
+  };
+}