2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "spaceship-prompt";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "4.14.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "denysdovhan";
|
2021-06-28 23:13:55 +00:00
|
|
|
repo = pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-aoifMAjJvv1WAlINNkMwCCop6znxyivoD3vQDo/ZbfQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
2021-06-28 23:13:55 +00:00
|
|
|
dontBuild = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
2021-06-28 23:13:55 +00:00
|
|
|
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"
|
2023-01-11 07:51:40 +00:00
|
|
|
install -Dm644 async.zsh "$out/lib/spaceship-prompt/async.zsh"
|
2020-04-24 23:36:52 +00:00
|
|
|
install -d "$out/share/zsh/themes/"
|
|
|
|
ln -s "$out/lib/spaceship-prompt/spaceship.zsh" "$out/share/zsh/themes/spaceship.zsh-theme"
|
2020-08-20 17:08:02 +00:00
|
|
|
install -d "$out/share/zsh/site-functions/"
|
|
|
|
ln -s "$out/lib/spaceship-prompt/spaceship.zsh" "$out/share/zsh/site-functions/prompt_spaceship_setup"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Zsh prompt for Astronauts";
|
|
|
|
homepage = "https://github.com/denysdovhan/spaceship-prompt/";
|
2021-06-28 23:13:55 +00:00
|
|
|
changelog = "https://github.com/spaceship-prompt/spaceship-prompt/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2021-06-28 23:13:55 +00:00
|
|
|
platforms = platforms.unix;
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ nyanloutre fortuneteller2k kyleondy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|