34 lines
978 B
Nix
34 lines
978 B
Nix
{ lib, stdenvNoCC, ncurses, fetchFromGitHub, gitUpdater }:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "zsh-you-should-use";
|
|
version = "1.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MichaelAquilina";
|
|
repo = "zsh-you-should-use";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-+3iAmWXSsc4OhFZqAMTwOL7AAHBp5ZtGGtvqCnEOYc0=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
dontBuild = true;
|
|
|
|
postPatch = ''
|
|
substituteInPlace you-should-use.plugin.zsh \
|
|
--replace-fail "tput" "${lib.getExe' ncurses "tput"}"
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -D you-should-use.plugin.zsh $out/share/zsh/plugins/you-should-use/you-should-use.plugin.zsh
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = {
|
|
homepage = "https://github.com/MichaelAquilina/zsh-you-should-use";
|
|
license = lib.licenses.gpl3;
|
|
description = "ZSH plugin that reminds you to use existing aliases for commands you just typed";
|
|
maintainers = with lib.maintainers; [ tomodachi94 ];
|
|
};
|
|
})
|