depot/third_party/nixpkgs/pkgs/by-name/zs/zsh-wd/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
1.1 KiB
Nix

{ lib, stdenvNoCC, fetchFromGitHub, installShellFiles }:
stdenvNoCC.mkDerivation rec {
pname = "wd";
version = "0.7.1";
src = fetchFromGitHub {
owner = "mfaerevaag";
repo = "wd";
rev = "v${version}";
sha256 = "sha256-Zc49X/8T66xnDkfotf0p6AVyHHd4P3eNDMOsO1sUryY=";
};
nativeBuildInputs = [ installShellFiles ];
installPhase = ''
install -Dm755 wd.plugin.zsh $out/share/wd/wd.plugin.zsh
install -Dm755 wd.sh $out/share/wd/wd.sh
installManPage wd.1
installShellCompletion --zsh _wd.sh
'';
meta = with lib; {
description = "Jump to custom directories in zsh";
longDescription = ''
`wd` (warp directory) lets you jump to custom directories in zsh, without
using `cd`. Why? Because `cd` seems inefficient when the folder is
frequently visited or has a long path.
'';
homepage = "https://github.com/mfaerevaag/wd";
changelog = "https://github.com/mfaerevaag/wd/releases/tag/v${version}";
license = licenses.mit;
maintainers = [ maintainers.zimeg ];
mainProgram = "wd";
platforms = platforms.unix;
};
}