nur-packages/pkgs/by-name/zs/zsh-z/package.nix

36 lines
800 B
Nix
Raw Normal View History

2020-10-15 19:05:13 +11:00
{ stdenv
, lib
2020-10-15 19:05:13 +11:00
, fetchFromGitHub
, installShellFiles
, zsh
}:
stdenv.mkDerivation {
pname = "zsh-z";
version = "20210117.g289a4a7";
2020-10-15 19:05:13 +11:00
src = fetchFromGitHub {
owner = "agkozak";
repo = "zsh-z";
rev = "289a4a7208db9b1778cba71c58fed46dbcea3bc7";
sha256 = "016prpavxdzjg372y2700rczdgzjb53bqz5mxjgmvrvjxwj69cf0";
2020-10-15 19:05:13 +11:00
};
nativeBuildInputs = [ installShellFiles ];
propogatedBuildInputs = [ zsh ];
installPhase = ''
install -D zsh-z.plugin.zsh $out/share/zsh-z/zsh-z.zsh
2020-10-15 19:05:13 +11:00
installShellCompletion --zsh _zshz
'';
meta = with lib; {
2020-10-15 19:05:13 +11:00
description = ''Jump quickly to directories that you have visited "frecently." A native ZSH port of z.sh.'';
homepage = "https://github.com/agkozak/zsh-z";
license = licenses.mit;
2021-01-04 12:10:34 +11:00
platforms = zsh.meta.platforms;
2020-10-15 19:05:13 +11:00
};
}