diff options
Diffstat (limited to 'pkgs/shells/fish/plugins/humantime-fish.nix')
-rw-r--r-- | pkgs/shells/fish/plugins/humantime-fish.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/shells/fish/plugins/humantime-fish.nix b/pkgs/shells/fish/plugins/humantime-fish.nix new file mode 100644 index 00000000000..8e1c960e59e --- /dev/null +++ b/pkgs/shells/fish/plugins/humantime-fish.nix @@ -0,0 +1,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 ]; + }; +} |