vsce: 3.1.0 -> 3.2.1 (#365104)

This commit is contained in:
Pol Dellaiera
2024-12-14 14:02:08 +01:00
committed by GitHub
+18 -19
View File
@@ -1,31 +1,30 @@
{
lib,
stdenv,
buildNpmPackage,
fetchFromGitHub,
pkg-config,
libsecret,
darwin,
python3,
testers,
vsce,
nix-update-script,
}:
buildNpmPackage rec {
pname = "vsce";
version = "3.1.0";
version = "3.2.1";
src = fetchFromGitHub {
owner = "microsoft";
repo = "vscode-vsce";
rev = "v${version}";
hash = "sha256-k2jeYeDLpSVw3puiOqlrtQ1a156OV1Er/TqdJuJ+578=";
hash = "sha256-S49tX0e0XW7RasYeFALKexP8516+7Umtglh1h6f5wEQ=";
};
npmDepsHash = "sha256-k6LdGCpVoBNpHe4z7NrS0T/gcB1EQBvBxGAM3zo+AAo=";
postPatch = ''
substituteInPlace package.json --replace '"version": "0.0.0"' '"version": "${version}"'
substituteInPlace package.json --replace-fail '"version": "0.0.0"' '"version": "${version}"'
'';
nativeBuildInputs = [
@@ -33,28 +32,28 @@ buildNpmPackage rec {
python3
];
buildInputs =
[ libsecret ]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
AppKit
Security
]
);
buildInputs = [ libsecret ];
makeCacheWritable = true;
npmFlags = [ "--legacy-peer-deps" ];
passthru.tests.version = testers.testVersion {
package = vsce;
passthru = {
tests.version = testers.testVersion {
package = vsce;
};
updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"^v(\\d+\\.\\d+\\.\\d+)$"
];
};
};
meta = with lib; {
meta = {
homepage = "https://github.com/microsoft/vscode-vsce";
description = "Visual Studio Code Extension Manager";
maintainers = with maintainers; [ aaronjheng ];
license = licenses.mit;
maintainers = with lib.maintainers; [ aaronjheng ];
license = lib.licenses.mit;
mainProgram = "vsce";
};
}