1{
2 lib,
3 buildFishPlugin,
4 fetchFromGitHub,
5 fishtape,
6}:
7buildFishPlugin {
8 pname = "humantime-fish";
9 version = "1.0.0-unstable-2022-04-08";
10
11 src = fetchFromGitHub {
12 owner = "jorgebucaran";
13 repo = "humantime.fish";
14 rev = "53b2adb4c6aff0da569c931a3cc006efcd0e7219";
15 sha256 = "sha256-792rPsf2WDIYcP8gn6TbHh9RZvskfOAL/oKfpilaLh0=";
16 };
17
18 checkPlugins = [ fishtape ];
19 checkPhase = ''
20 fishtape tests/humantime.fish
21 '';
22
23 meta = with lib; {
24 description = "Turn milliseconds into a human-readable string in Fish";
25 homepage = "https://github.com/jorgebucaran/humantime.fish";
26 license = licenses.mit;
27 maintainers = with maintainers; [ Scrumplex ];
28 };
29}