Skip to content

Commit

Permalink
vsce: 3.1.0 -> 3.2.1 (#365104)
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol authored Dec 14, 2024
2 parents ac38438 + 95541a7 commit ba1ac36
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions pkgs/by-name/vs/vsce/package.nix
Original file line number Diff line number Diff line change
@@ -1,60 +1,59 @@
{
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 = [
pkg-config
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";
};
}

0 comments on commit ba1ac36

Please sign in to comment.