fishPlugins.done: init at 1.16.1

This commit is contained in:
Malo Bourgon 2021-04-12 18:56:46 -07:00
parent 3b026ab7e2
commit fd44ecd1d8
2 changed files with 27 additions and 0 deletions

View file

@ -6,6 +6,8 @@ lib.makeScope newScope (self: with self; {
clownfish = callPackage ./clownfish.nix { };
done = callPackage ./done.nix { };
# Fishtape 2.x and 3.x aren't compatible,
# but both versions are used in the tests of different other plugins.
fishtape = callPackage ./fishtape.nix { };

View file

@ -0,0 +1,25 @@
{ lib, buildFishPlugin, fetchFromGitHub, fishtape }:
buildFishPlugin rec {
pname = "done";
version = "1.16.1";
src = fetchFromGitHub {
owner = "franciscolourenco";
repo = "done";
rev = version;
sha256 = "NFysKzRZgDXXZW/sUlZNu7ZpMCKwbjAhIfspSK3UqCY=";
};
checkPlugins = [ fishtape ];
checkPhase = ''
fishtape test/done.fish
'';
meta = {
description = "Automatically receive notifications when long processes finish";
homepage = "https://github.com/franciscolourenco/done";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ malo ];
};
}