2017-10-10 00:39:04 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-11-26 19:47:36 +00:00
|
|
|
version = "2.2.2";
|
2017-10-10 00:39:04 +00:00
|
|
|
name = "antigen-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/zsh-users/antigen/releases/download/v${version}/antigen.zsh";
|
2017-11-26 19:47:36 +00:00
|
|
|
sha256 = "0635dvnsqh7dpqdwx5qq3kx7m1cx2038zln6y9ycnbi3i0ilgj9z";
|
2017-10-10 00:39:04 +00:00
|
|
|
};
|
2017-11-26 19:47:36 +00:00
|
|
|
|
2017-10-10 00:39:04 +00:00
|
|
|
phases = "installPhase";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
outdir=$out/share/antigen
|
|
|
|
mkdir -p $outdir
|
|
|
|
cp $src $outdir/antigen.zsh
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The plugin manager for zsh.";
|
|
|
|
homepage = http://antigen.sharats.me;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|