about summary refs log tree commit diff
path: root/pkgs/shells/fish/plugins/humantime-fish.nix
blob: 8e1c960e59e596985fe83e7d9ab026767f241863 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib
, buildFishPlugin
, fetchFromGitHub
, fishtape
,
}:
buildFishPlugin rec {
  pname = "humantime-fish";
  version = "unstable-2022-04-08";

  src = fetchFromGitHub {
    owner = "jorgebucaran";
    repo = "humantime.fish";
    rev = "53b2adb4c6aff0da569c931a3cc006efcd0e7219";
    sha256 = "sha256-792rPsf2WDIYcP8gn6TbHh9RZvskfOAL/oKfpilaLh0=";
  };

  checkPlugins = [ fishtape ];
  checkPhase = ''
    fishtape tests/humantime.fish
  '';

  meta = with lib; {
    description = "Turn milliseconds into a human-readable string in Fish";
    homepage = "https://github.com/jorgebucaran/humantime.fish";
    license = licenses.mit;
    maintainers = with maintainers; [ Scrumplex ];
  };
}