vsce: init at 2.15.0

This commit is contained in:
Aaron Jheng 2022-10-23 01:02:33 +00:00
parent 2f7f695dd7
commit cba2dbc72f
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, stdenv
, buildNpmPackage
, fetchFromGitHub
, pkg-config
, libsecret
, python3
, testers
, vsce
}:
buildNpmPackage rec {
pname = "vsce";
version = "2.15.0";
src = fetchFromGitHub {
owner = "microsoft";
repo = "vscode-vsce";
rev = "v${version}";
hash = "sha256-WDKOHQV6J22l0ELmXwl5BC5x7MsI6TAMeU3oBFpwqx4=";
};
npmDepsHash = "sha256-i2LpQ/4MwkUGTUhih0ybLv5np45j7m4kCx9IOBIgtXo=";
postPatch = ''
substituteInPlace package.json --replace '"version": "0.0.0"' '"version": "${version}"'
'';
nativeBuildInputs = [ pkg-config python3 ];
buildInputs = [ libsecret ];
makeCacheWritable = true;
npmFlags = [ "--legacy-peer-deps" ];
passthru.tests.version = testers.testVersion {
package = vsce;
};
meta = with lib; {
homepage = "https://github.com/microsoft/vscode-vsce";
description = "Visual Studio Code Extension Manager";
maintainers = with maintainers; [ aaronjheng ];
license = licenses.mit;
};
}

View File

@ -32936,6 +32936,8 @@ with pkgs;
autoreconfHook = buildPackages.autoreconfHook269;
};
vsce = callPackage ../development/tools/vsce { };
vscode = callPackage ../applications/editors/vscode/vscode.nix { };
vscode-fhs = vscode.fhs;
vscode-fhsWithPackages = vscode.fhsWithPackages;