From 0f21becbabc8c2a2d2106b7f855830a2567ef4a1 Mon Sep 17 00:00:00 2001 From: Paul TREHIOU Date: Sun, 11 Nov 2018 02:17:57 +0100 Subject: [PATCH] spaceship-prompt: init at 3.7.1 (#50177) * spaceship-prompt: init at 3.7.1 * spaceship-prompt: useless zsh argument --- pkgs/shells/zsh/spaceship-prompt/default.nix | 33 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/shells/zsh/spaceship-prompt/default.nix 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 761de02405a0..04c337f1ad59 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12360,6 +12360,8 @@ with pkgs; spandsp = callPackage ../development/libraries/spandsp {}; + spaceship-prompt = callPackage ../shells/zsh/spaceship-prompt {}; + spatialite_tools = callPackage ../development/libraries/spatialite-tools { }; spdk = callPackage ../development/libraries/spdk { };