Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

30 lines
697 B
Nix

{
lib,
buildFishPlugin,
fetchFromGitHub,
fishtape,
}:
buildFishPlugin {
pname = "humantime-fish";
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 = {
description = "Turn milliseconds into a human-readable string in Fish";
homepage = "https://github.com/jorgebucaran/humantime.fish";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Scrumplex ];
};
}