about summary refs log tree commit diff
path: root/pkgs/shells/zsh/zsh-edit/default.nix
blob: 9c734c928c24e09d2d636dc0af494661ae87f10a (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
32
33
{ stdenv, lib, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "zsh-edit";
  version = "unstable-2022-05-05";

  src = fetchFromGitHub {
    owner = "marlonrichert";
    repo = "zsh-edit";
    rev = "4a8fa599792b6d52eadbb3921880a40872013d28";
    sha256 = "PI4nvzB/F0mHlc0UZJdD49vjzB6pXhhJYNTSmBhY8iU=";
  };

  strictDeps = true;

  dontBuild = true;

  installPhase = ''
    outdir=$out/share/zsh/${pname}
    install -D zsh-edit.plugin.zsh $outdir/zsh-edit.plugin.zsh
    install -D _bind $outdir/_bind
    install -d $outdir/functions
    install -D functions/{,.edit}* $outdir/functions
  '';

  meta = with lib; {
    homepage = "https://github.com/marlonrichert/zsh-edit";
    description = "A set of powerful extensions to the Zsh command line editor";
    license = licenses.mit;
    maintainers = with maintainers; [ deejayem ];
    platforms = platforms.all;
  };
}