summary refs log tree commit diff
path: root/pkgs/shells/zsh/zplug/default.nix
blob: 0660bbe7e7b136fb50545208c4dcb4b4dfb0bad1 (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
27
28
29
30
31
{ stdenv, lib, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "zplug";
  version = "2.4.2";

  src = fetchFromGitHub {
    owner = "zplug";
    repo = pname;
    rev = version;
    sha256 = "0hci1pbs3k5icwfyfw5pzcgigbh9vavprxxvakg1xm19n8zb61b3";
  };

  dontConfigure = true;
  dontBuild = true;
  dontPatch = true;

  installPhase = ''
    mkdir -p $out
    cp -r $src/* $out/
  '';

  meta = with lib; {
    description = "A next-generation plugin manager for zsh";
    homepage = "https://github.com/zplug/zplug";
    license = licenses.mit;
    maintainers = [ maintainers.s1341 ];
    mainProgram = "zplug-env";
    platforms = platforms.all;
  };
}