diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-03-09 21:52:03 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-03-13 16:44:06 +0100 |
commit | aec7857745a074361cbb2b6d20aff9e7181a026a (patch) | |
tree | 8875330998c4ec100cd6e4d349b1b59bd04c66f6 /pkgs/shells/fish | |
parent | 196e9745e3b721fe79b5c4ede67c0c92e7076cba (diff) | |
download | nixpkgs-aec7857745a074361cbb2b6d20aff9e7181a026a.tar nixpkgs-aec7857745a074361cbb2b6d20aff9e7181a026a.tar.gz nixpkgs-aec7857745a074361cbb2b6d20aff9e7181a026a.tar.bz2 nixpkgs-aec7857745a074361cbb2b6d20aff9e7181a026a.tar.lz nixpkgs-aec7857745a074361cbb2b6d20aff9e7181a026a.tar.xz nixpkgs-aec7857745a074361cbb2b6d20aff9e7181a026a.tar.zst nixpkgs-aec7857745a074361cbb2b6d20aff9e7181a026a.zip |
fishPlugins.humantime-fish: init at unstable-2022-04-08
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'pkgs/shells/fish')
-rw-r--r-- | pkgs/shells/fish/plugins/default.nix | 2 | ||||
-rw-r--r-- | pkgs/shells/fish/plugins/humantime-fish.nix | 29 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix index c9e107a477e..b1dba3142fd 100644 --- a/pkgs/shells/fish/plugins/default.nix +++ b/pkgs/shells/fish/plugins/default.nix @@ -28,6 +28,8 @@ lib.makeScope newScope (self: with self; { grc = callPackage ./grc.nix { }; + humantime-fish = callPackage ./humantime-fish.nix { }; + hydro = callPackage ./hydro.nix { }; pisces = callPackage ./pisces.nix { }; 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 ]; + }; +} |