nixpkgs/pkgs/shells/zsh/antigen/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

26 lines
564 B
Nix

{ 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";
};
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;
};
}