From 95541a7a32bc74c5f22529585f6c931e3bff60e9 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sat, 14 Dec 2024 12:24:29 +0800 Subject: [PATCH] vsce: 3.1.0 -> 3.2.1 --- pkgs/by-name/vs/vsce/package.nix | 37 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/pkgs/by-name/vs/vsce/package.nix b/pkgs/by-name/vs/vsce/package.nix index 920213bc3c7aa..1e490328cfe26 100644 --- a/pkgs/by-name/vs/vsce/package.nix +++ b/pkgs/by-name/vs/vsce/package.nix @@ -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"; }; }