Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ lib, stdenvNoCC, fetchFromGitHub, installShellFiles }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "wd";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mfaerevaag";
|
|
repo = "wd";
|
|
rev = "v${version}";
|
|
hash = "sha256-UjeLsc6pz1t798Qy6cliYjP0qjXvUIPotbnUm8dBrFs=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|