mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #42162 from eadwu/init/vscode-extensions.WakaTime.vscode-wakatime
vscode-extensions.WakaTime.vscode-wakatime: init at 1.2.3
This commit is contained in:
commit
9d73a7e6f4
@ -26,4 +26,6 @@ rec {
|
||||
ms-vscode.cpptools = callPackage ./cpptools {};
|
||||
|
||||
ms-python.python = callPackage ./python {};
|
||||
|
||||
WakaTime.vscode-wakatime = callPackage ./wakatime {};
|
||||
}
|
||||
|
@ -65,10 +65,10 @@ let
|
||||
"sha256"
|
||||
];
|
||||
|
||||
mktplcExtRefToExtDrv = ext:
|
||||
buildVscodeMarketplaceExtension ((removeAttrs ext mktplcRefAttrList) // {
|
||||
mktplcRef = ext;
|
||||
});
|
||||
mktplcExtRefToExtDrv = ext:
|
||||
buildVscodeMarketplaceExtension ((removeAttrs ext mktplcRefAttrList) // {
|
||||
mktplcRef = ext;
|
||||
});
|
||||
|
||||
extensionFromVscodeMarketplace = mktplcExtRefToExtDrv;
|
||||
extensionsFromVscodeMarketplace = mktplcExtRefList:
|
||||
@ -77,7 +77,7 @@ let
|
||||
in
|
||||
|
||||
{
|
||||
inherit fetchVsixFromVscodeMarketplace buildVscodeExtension
|
||||
inherit fetchVsixFromVscodeMarketplace buildVscodeExtension
|
||||
buildVscodeMarketplaceExtension extensionFromVscodeMarketplace
|
||||
extensionsFromVscodeMarketplace;
|
||||
}
|
||||
}
|
||||
|
30
pkgs/misc/vscode-extensions/wakatime/default.nix
Normal file
30
pkgs/misc/vscode-extensions/wakatime/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ stdenv, wakatime, vscode-utils }:
|
||||
|
||||
let
|
||||
inherit (vscode-utils) buildVscodeMarketplaceExtension;
|
||||
in
|
||||
buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
name = "vscode-wakatime";
|
||||
publisher = "WakaTime";
|
||||
version = "1.2.3";
|
||||
sha256 = "1n7bxkwgpip11k6d7zc3ifp9zb6p7f27f4x4g584wisrnfnqj1bp";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
mkdir -p out/wakatime-master
|
||||
|
||||
cp -rt out/wakatime-master --no-preserve=all ${wakatime}/lib/python*/site-packages/wakatime
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = ''
|
||||
Visual Studio Code plugin for automatic time tracking and metrics generated
|
||||
from your programming activity
|
||||
'';
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [
|
||||
eadwu
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user