nixpkgs/pkgs/shells/zsh/spaceship-prompt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.6 KiB
Nix
Raw Normal View History

2021-06-18 07:32:23 +00:00
{ lib, stdenvNoCC, fetchFromGitHub }:
2021-06-18 07:32:23 +00:00
stdenvNoCC.mkDerivation rec {
pname = "spaceship-prompt";
2024-06-19 15:53:58 +00:00
version = "4.16.0";
src = fetchFromGitHub {
owner = "denysdovhan";
2021-06-18 07:32:23 +00:00
repo = pname;
2019-09-14 08:12:05 +00:00
rev = "v${version}";
2024-06-19 15:53:58 +00:00
sha256 = "sha256-WjeUF8yD3il9DAava/SYv7ID6iM9AbR1ppazJnypgnk=";
};
2022-05-06 18:39:28 +00:00
strictDeps = true;
2021-06-18 07:32:23 +00:00
dontBuild = true;
installPhase = ''
2021-06-18 07:32:23 +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"
install -Dm644 async.zsh "$out/lib/spaceship-prompt/async.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/"
ln -s "$out/lib/spaceship-prompt/spaceship.zsh" "$out/share/zsh/site-functions/prompt_spaceship_setup"
'';
meta = with lib; {
description = "Zsh prompt for Astronauts";
homepage = "https://github.com/denysdovhan/spaceship-prompt/";
2021-06-18 07:32:23 +00:00
changelog = "https://github.com/spaceship-prompt/spaceship-prompt/releases/tag/v${version}";
license = licenses.mit;
2021-06-18 07:32:23 +00:00
platforms = platforms.unix;
2023-11-17 10:03:27 +00:00
maintainers = with maintainers; [ nyanloutre moni kyleondy ];
};
}