mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ lib, stdenvNoCC, fetchFromGitHub, installShellFiles }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "wd";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mfaerevaag";
|
|
repo = "wd";
|
|
rev = "v${version}";
|
|
hash = "sha256-rHHCnHa0/t2ij+6rExgvNt2EFBnkgs6l7oE6zL+xc58=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|