vsce: init at 2.15.0
This commit is contained in:
parent
2f7f695dd7
commit
cba2dbc72f
47
pkgs/development/tools/vsce/default.nix
Normal file
47
pkgs/development/tools/vsce/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user