2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2018-11-11 01:17:57 +00:00
|
|
|
|
2019-09-14 09:12:05 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "spaceship-prompt";
|
2019-09-14 09:12:05 +01:00
|
|
|
version = "3.11.2";
|
2018-11-11 01:17:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "denysdovhan";
|
|
|
|
repo = "spaceship-prompt";
|
2019-09-14 09:12:05 +01:00
|
|
|
sha256 = "1q7m9mmg82n4fddfz01y95d5n34xnzhrnn1lli0vih39sgmzim9b";
|
|
|
|
rev = "v${version}";
|
2018-11-11 01:17:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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"
|
2020-08-08 09:30:52 +01:00
|
|
|
install -d "$out/share/zsh/site-functions/"
|
|
|
|
ln -s "$out/lib/spaceship-prompt/spaceship.zsh" "$out/share/zsh/site-functions/prompt_spaceship_setup"
|
2018-11-11 01:17:57 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-11 01:17:57 +00:00
|
|
|
description = "Zsh prompt for Astronauts";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/denysdovhan/spaceship-prompt/";
|
2018-11-11 01:17:57 +00:00
|
|
|
license = licenses.mit;
|
2020-07-08 15:39:55 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2018-11-11 01:17:57 +00:00
|
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
|
|
};
|
|
|
|
}
|