bulk versions.json
This commit is contained in:
@@ -6,19 +6,21 @@
|
||||
}:
|
||||
|
||||
let
|
||||
version = "0.0.49";
|
||||
publisher = "jeanp413";
|
||||
name = "open-remote-ssh";
|
||||
inherit (lib.trivial) importJSON;
|
||||
versionSpec = importJSON ./version.json;
|
||||
versioning = import ../../../lib/versioning.nix { inherit lib pkgs; };
|
||||
selected = versioning.selectVariant versionSpec null null;
|
||||
vars = selected.variables or {};
|
||||
sources = versioning.mkAllSources selected;
|
||||
in
|
||||
vscode-utils.buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
inherit name publisher version;
|
||||
name = vars.name;
|
||||
publisher = vars.publisher;
|
||||
version = vars.version;
|
||||
};
|
||||
|
||||
vsix = fetchurl {
|
||||
url = "https://open-vsx.org/api/${publisher}/${name}/${version}/file/${publisher}.${name}-${version}.vsix";
|
||||
sha256 = "sha256-QfJnAAx+kO2iJ1EzWoO5HLogJKg3RiC3hg1/u2Jm6t4=";
|
||||
};
|
||||
vsix = sources.vsix;
|
||||
|
||||
unpackPhase = ''
|
||||
${lib.getExe pkgs.unzip} -q $src
|
||||
|
||||
15
packages/system/open-remote-ssh/version.json
Normal file
15
packages/system/open-remote-ssh/version.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"variables": {
|
||||
"version": "0.0.49",
|
||||
"publisher": "jeanp413",
|
||||
"name": "open-remote-ssh"
|
||||
},
|
||||
"sources": {
|
||||
"vsix": {
|
||||
"fetcher": "url",
|
||||
"urlTemplate": "https://open-vsx.org/api/${publisher}/${name}/${version}/file/${publisher}.${name}-${version}.vsix",
|
||||
"hash": "sha256-QfJnAAx+kO2iJ1EzWoO5HLogJKg3RiC3hg1/u2Jm6t4="
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user