about summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorfortuneteller2k <lythe1107@gmail.com>2021-06-18 15:32:23 +0800
committerRaphael Megzari <raphael@megzari.com>2021-06-18 17:58:16 +0900
commit414d71bc1c389a2f9e52f78071fde86b5b70ef10 (patch)
tree8efbe5cbb824810c30142324bec99089291477bb /pkgs/shells
parentdadf0cdf3889f939f3acc354086751597f55d674 (diff)
spaceship-prompt: 3.11.2 -> 3.12.6
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/zsh/spaceship-prompt/default.nix31
1 files changed, 17 insertions, 14 deletions
diff --git a/pkgs/shells/zsh/spaceship-prompt/default.nix b/pkgs/shells/zsh/spaceship-prompt/default.nix
index 8f4b9bf0875cb..e5725a78fc54d 100644
--- a/pkgs/shells/zsh/spaceship-prompt/default.nix
+++ b/pkgs/shells/zsh/spaceship-prompt/default.nix
@@ -1,24 +1,26 @@
-{ lib, stdenv, fetchFromGitHub }:
+{ lib, stdenvNoCC, fetchFromGitHub }:
 
-stdenv.mkDerivation rec {
+stdenvNoCC.mkDerivation rec {
   pname = "spaceship-prompt";
-  version = "3.11.2";
+  version = "3.12.6";
 
   src = fetchFromGitHub {
     owner = "denysdovhan";
-    repo = "spaceship-prompt";
-    sha256 = "1q7m9mmg82n4fddfz01y95d5n34xnzhrnn1lli0vih39sgmzim9b";
+    repo = pname;
     rev = "v${version}";
+    sha256 = "sha256-tKFah8b62wuw5vaNHddmj31UNd9kKCcQ99p8GlTnR6s=";
   };
 
+  dontBuild = true;
+
   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 -Dm644 LICENSE.md "$out/share/licenses/spaceship-prompt/LICENSE"
+    install -Dm644 README.md "$out/share/doc/spaceship-prompt/README.md"
+    find docs -type f -exec install -Dm644 {} "$out/share/doc/spaceship-prompt/{}" \;
+    find lib -type f -exec install -Dm644 {} "$out/lib/spaceship-prompt/{}" \;
+    find scripts -type f -exec install -Dm644 {} "$out/lib/spaceship-prompt/{}" \;
+    find sections -type f -exec install -Dm644 {} "$out/lib/spaceship-prompt/{}" \;
+    install -Dm644 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"
     install -d "$out/share/zsh/site-functions/"
@@ -28,8 +30,9 @@ stdenv.mkDerivation rec {
   meta = with lib; {
     description = "Zsh prompt for Astronauts";
     homepage = "https://github.com/denysdovhan/spaceship-prompt/";
+    changelog = "https://github.com/spaceship-prompt/spaceship-prompt/releases/tag/v${version}";
     license = licenses.mit;
-    platforms = platforms.linux ++ platforms.darwin;
-    maintainers = with maintainers; [ nyanloutre ];
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ nyanloutre fortuneteller2k ];
   };
 }