about summary refs log tree commit diff
path: root/pkgs/shells/zsh/antigen/default.nix
blob: ca5fbee6e36878c7b67512a4df1dabe554ab5085 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  version = "2.2.3";
  pname = "antigen";

  src = fetchurl {
    url = "https://github.com/zsh-users/antigen/releases/download/v${version}/antigen.zsh";
    sha256 = "1bmp3qf14509swpxin4j9f98n05pdilzapjm0jdzbv0dy3hn20ix";
  };

  strictDeps = true;
  dontUnpack = true;

  installPhase = ''
    outdir=$out/share/antigen
    mkdir -p $outdir
    cp $src $outdir/antigen.zsh
  '';

  meta = {
    description = "The plugin manager for zsh";
    homepage = "https://antigen.sharats.me/";
    license = lib.licenses.mit;
  };
}