@@ -0,0 +1,33 @@
1+{ stdenv, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec{
4+ name = "spaceship-prompt-${version}";
5+ version = "3.7.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "denysdovhan";
9+ repo = "spaceship-prompt";
10+ sha256 = "0laihax18bs254rm2sww5wkjbmkp4m5c8aicgqpi4diz7difxk6z";
11+ rev = "aaa34aeab9ba0a99416788f627ec9aeffba392f0";
12+ };
13+
14+ installPhase = ''
15+ install -D -m644 LICENSE.md "$out/share/licenses/spaceship-prompt/LICENSE"
16+ install -D -m644 README.md "$out/share/doc/spaceship-prompt/README.md"
17+ find docs -type f -exec install -D -m644 {} "$out/share/doc/spaceship-prompt/{}" \;
18+ find lib -type f -exec install -D -m644 {} "$out/lib/spaceship-prompt/{}" \;
19+ find scripts -type f -exec install -D -m644 {} "$out/lib/spaceship-prompt/{}" \;
20+ find sections -type f -exec install -D -m644 {} "$out/lib/spaceship-prompt/{}" \;
21+ install -D -m644 spaceship.zsh "$out/lib/spaceship-prompt/spaceship.zsh"
22+ install -d "$out/share/zsh/themes/"
23+ ln -s "$out/lib/spaceship-prompt/spaceship.zsh" "$out/share/zsh/themes/spaceship.zsh-theme"
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description = "Zsh prompt for Astronauts";
28+ homepage = https://github.com/halfo/lambda-mod-zsh-theme/;
29+ license = licenses.mit;
30+ platforms = platforms.linux;
31+ maintainers = with maintainers; [ nyanloutre ];
32+ };
33+}