2021-06-18 09:32:23 +02:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2018-11-11 02:17:57 +01:00
|
|
|
|
2021-06-18 09:32:23 +02:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "spaceship-prompt";
|
2023-10-05 06:44:34 +02:00
|
|
|
version = "4.14.1";
|
2018-11-11 02:17:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "denysdovhan";
|
2021-06-18 09:32:23 +02:00
|
|
|
repo = pname;
|
2019-09-14 10:12:05 +02:00
|
|
|
rev = "v${version}";
|
2023-10-05 06:44:34 +02:00
|
|
|
sha256 = "sha256-dl8Ao9Sg+wbFpp6LfWD6isEKou75UzfJkTjZrue4A0A=";
|
2018-11-11 02:17:57 +01:00
|
|
|
};
|
|
|
|
|
2022-05-06 20:39:28 +02:00
|
|
|
strictDeps = true;
|
2021-06-18 09:32:23 +02:00
|
|
|
dontBuild = true;
|
|
|
|
|
2018-11-11 02:17:57 +01:00
|
|
|
installPhase = ''
|
2021-06-18 09:32:23 +02: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"
|
2022-12-19 21:00:02 +01:00
|
|
|
install -Dm644 async.zsh "$out/lib/spaceship-prompt/async.zsh"
|
2018-11-11 02:17:57 +01:00
|
|
|
install -d "$out/share/zsh/themes/"
|
|
|
|
ln -s "$out/lib/spaceship-prompt/spaceship.zsh" "$out/share/zsh/themes/spaceship.zsh-theme"
|
2020-08-08 10:30:52 +02: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 02:17:57 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-11-11 02:17:57 +01:00
|
|
|
description = "Zsh prompt for Astronauts";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/denysdovhan/spaceship-prompt/";
|
2021-06-18 09:32:23 +02:00
|
|
|
changelog = "https://github.com/spaceship-prompt/spaceship-prompt/releases/tag/v${version}";
|
2018-11-11 02:17:57 +01:00
|
|
|
license = licenses.mit;
|
2021-06-18 09:32:23 +02:00
|
|
|
platforms = platforms.unix;
|
2023-11-17 11:03:27 +01:00
|
|
|
maintainers = with maintainers; [ nyanloutre moni kyleondy ];
|
2018-11-11 02:17:57 +01:00
|
|
|
};
|
|
|
|
}
|