electron_32: fix log spam when building on aarch64-linux (#378988)
[NixPkgs.git] / pkgs / by-name / zs / zsh-command-time / package.nix
blob957ab9b352b3bb6bb0d8a12534e1fd576ebfbf83
2   lib,
3   stdenv,
4   fetchFromGitHub,
5 }:
7 # To make use of this plugin, need to add
8 #   programs.zsh.interactiveShellInit = ''
9 #     source ${pkgs.zsh-command-time}/share/zsh/plugins/command-time/command-time.plugin.zsh
10 #     ZSH_COMMAND_TIME_COLOR="yellow"
11 #     ZSH_COMMAND_TIME_MIN_SECONDS=3
12 #     ZSH_COMMAND_TIME_ECHO=1
13 #   '';
15 stdenv.mkDerivation {
16   version = "2020-11-15";
17   pname = "zsh-command-time";
19   src = fetchFromGitHub {
20     owner = "popstas";
21     repo = "zsh-command-time";
22     rev = "803d26eef526bff1494d1a584e46a6e08d25d918";
23     hash = "sha256-ndHVFcz+XmUW0zwFq7pBXygdRKyPLjDZNmTelhd5bv8=";
24   };
26   strictDeps = true;
27   dontUnpack = true;
29   installPhase = ''
30     install -Dm0444 $src/command-time.plugin.zsh --target-directory=$out/share/zsh/plugins/command-time
31   '';
33   meta = with lib; {
34     description = "Plugin that output time: xx after long commands";
35     homepage = "https://github.com/popstas/zsh-command-time";
36     license = licenses.mit;
37     platforms = platforms.unix;
38     maintainers = with maintainers; [ lassulus ];
39   };