diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix index 36a5a59e4398..485faa1c89b1 100644 --- a/pkgs/shells/fish/plugins/default.nix +++ b/pkgs/shells/fish/plugins/default.nix @@ -50,6 +50,8 @@ lib.makeScope newScope (self: with self; { plugin-git = callPackage ./plugin-git.nix { }; + plugin-sudope = callPackage ./plugin-sudope.nix { }; + puffer = callPackage ./puffer.nix { }; pure = callPackage ./pure.nix { }; diff --git a/pkgs/shells/fish/plugins/plugin-sudope.nix b/pkgs/shells/fish/plugins/plugin-sudope.nix new file mode 100644 index 000000000000..e24f6ae15050 --- /dev/null +++ b/pkgs/shells/fish/plugins/plugin-sudope.nix @@ -0,0 +1,26 @@ +{ + lib, + buildFishPlugin, + fetchFromGitHub, + unstableGitUpdater, +}: +buildFishPlugin { + pname = "plugin-sudope"; + version = "0-unstable-2021-04-11"; + + src = fetchFromGitHub { + owner = "oh-my-fish"; + repo = "plugin-sudope"; + rev = "83919a692bc1194aa322f3627c859fecace5f496"; + hash = "sha256-pD4rNuqg6TG22L9m8425CO2iqcYm8JaAEXIVa0H/v/U="; + }; + + passthru.updateScript = unstableGitUpdater { }; + + meta = { + description = "Fish plugin to quickly put 'sudo' in your command"; + homepage = "https://github.com/oh-my-fish/plugin-sudope"; + license = lib.licenses.isc; + maintainers = with lib.maintainers; [ anomalocaris ]; + }; +}