Skip to content

Commit

Permalink
📦 Add prompt-style
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Jun 17, 2024
1 parent d37d35a commit 2d5b330
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ let

# https://github.com/NixOS/nixpkgs/issues/261342
repl-python-wakatime = callPackage ./pkgs/development/python-modules/repl-python-wakatime { };
prompt-style = callPackage ./pkgs/development/lua-modules/prompt-style { };
translate-shell = callPackage ./pkgs/development/python-modules/translate-shell { };
mulimgviewer = callPackage ./pkgs/development/python-modules/mulimgviewer { };
stardict-ecdict = callPackage ./pkgs/data/misc/stardict-ecdict { };
Expand Down
29 changes: 29 additions & 0 deletions pkgs/development/lua-modules/prompt-style/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ luaPackages, fetchurl, fetchFromGitHub }:

with luaPackages;
buildLuarocksPackage {
pname = "prompt-style";
version = "0.0.1-0";
knownRockspec = (fetchurl {
url = "mirror://luarocks/prompt-style-0.0.1-0.rockspec";
sha256 = "sha256-LUeGkyLlfjEPOrvQl8z1Y0GROiglheGIsUi6/I7y4a0=";
}).outPath;
src = fetchFromGitHub {
owner = "wakatime";
repo = "prompt-style.lua";
rev = "0.0.1";
fetchSubmodules = false;
sha256 = "sha256-ejVM+cWAAsxREFxA6e3ZICqkREEZXaZp8u5RSysLNck=";
};

disabled = luaOlder "5.1";
propagatedBuildInputs = [ ansicolors luaprompt luafilesystem ];
postInstall = ''
rm -rf $out/bin
'';
meta = {
homepage = "https://github.com/wakatime/prompt-style.lua";
description = "Lua plugin for powerlevel10k style prompt and WakaTime time tracking";
license.fullName = "GPL-3.0";
};
}

0 comments on commit 2d5b330

Please sign in to comment.