2017-11-27 10:44:18 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
# To make use of this plugin, need to add
|
|
|
|
# programs.zsh.interactiveShellInit = ''
|
2019-01-02 15:29:56 +01:00
|
|
|
# source ${pkgs.zsh-command-time}/share/zsh/plugins/command-time/command-time.plugin.zsh
|
|
|
|
# ZSH_COMMAND_TIME_COLOR="yellow"
|
2017-11-27 10:44:18 +01:00
|
|
|
# ZSH_COMMAND_TIME_MIN_SECONDS=3
|
|
|
|
# ZSH_COMMAND_TIME_ECHO=1
|
|
|
|
# '';
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2018-07-12 08:45:54 +02:00
|
|
|
version = "2018-04-30";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "zsh-command-time";
|
2017-11-27 10:44:18 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "popstas";
|
|
|
|
repo = "zsh-command-time";
|
2018-07-12 08:45:54 +02:00
|
|
|
rev = "afb4a4c9ae7ce64ca9d4f334a79a25e46daad0aa";
|
|
|
|
sha256 = "1bvyjgz6bhgg1nwr56r50p6fblgah6yiql55pgm5abnn2h876fjq";
|
2017-11-27 10:44:18 +01:00
|
|
|
};
|
|
|
|
|
2018-07-27 13:55:02 +02:00
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
2017-11-27 10:44:18 +01:00
|
|
|
installPhase = ''
|
2019-01-02 15:29:56 +01:00
|
|
|
install -Dm0444 $src/command-time.plugin.zsh --target-directory=$out/share/zsh/plugins/command-time
|
2017-11-27 10:44:18 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Plugin that output time: xx after long commands";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/popstas/zsh-command-time";
|
2017-11-27 10:44:18 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|