vscode-extensions.sourcery.sourcery: init at 1.16.0

This commit is contained in:
TomaSajt 2024-04-16 21:36:58 +02:00
parent a6aa2cfc68
commit 772fc787d1
No known key found for this signature in database
GPG Key ID: F011163C050122A1
2 changed files with 44 additions and 0 deletions

View File

@ -3712,6 +3712,8 @@ let
meta.license = lib.licenses.lgpl3Only;
};
sourcery.sourcery = callPackage ./sourcery.sourcery { };
spywhere.guides = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "guides";

View File

@ -0,0 +1,42 @@
{
lib,
stdenv,
vscode-utils,
autoPatchelfHook,
libxcrypt-legacy,
}:
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "sourcery";
publisher = "sourcery";
version = "1.16.0";
hash = "sha256-SHgS2C+ElTJW4v90Wg0QcsSL2FoSz+SxZQpgq2J4JiU=";
};
postPatch = ''
pushd sourcery_binaries/install
rm -r win ${if stdenv.isLinux then "mac" else "linux"}
popd
'';
nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ];
buildInputs = [
stdenv.cc.cc.lib
libxcrypt-legacy
];
meta = {
changelog = "https://sourcery.ai/changelog/";
description = "A VSCode extension for Sourcery, an AI-powered code review and pair programming tool for Python";
downloadPage = "https://marketplace.visualstudio.com/items?itemName=sourcery.sourcery";
homepage = "https://github.com/sourcery-ai/sourcery-vscode";
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ tomasajt ];
platforms = [
"x86_64-linux"
"x86_64-darwin"
];
};
}