1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/shells/fish/plugins/humantime-fish.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
699 B
Nix
Raw Permalink Normal View History

{ lib
, buildFishPlugin
, fetchFromGitHub
, fishtape
,
}:
buildFishPlugin rec {
pname = "humantime-fish";
2024-11-09 09:21:33 +00:00
version = "1.0.0-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 ];
};
}