Support the legacy nix-installer-xxx source prefs

This commit is contained in:
Graham Christensen 2024-04-10 21:14:31 -04:00
parent c424d1c6ad
commit 63d0368218
5 changed files with 10 additions and 6 deletions

1
dist/index.js generated vendored
View file

@ -97538,6 +97538,7 @@ class NixInstallerAction {
this.idslib = new IdsToolbox({
name: "nix-installer",
fetchStyle: "nix-style",
legacySourcePrefix: "nix-installer",
});
this.platform = get_nix_platform();
this.nix_package_url = action_input_string_or_null("nix-package-url");

1
dist/main.js generated vendored
View file

@ -14,6 +14,7 @@ class NixInstallerAction {
this.idslib = new IdsToolbox({
name: "nix-installer",
fetchStyle: "nix-style",
legacySourcePrefix: "nix-installer",
});
this.platform = get_nix_platform();
this.nix_package_url = action_input_string_or_null("nix-package-url");

View file

@ -9,7 +9,8 @@
"build": "tsc",
"format": "prettier --write .",
"lint": "eslint src/**/*.ts",
"all": "pnpm run format && pnpm run lint && pnpm run build"
"package": "ncc build",
"all": "pnpm run format && pnpm run lint && pnpm run build && pnpm run package"
},
"repository": {
"type": "git",
@ -23,7 +24,7 @@
},
"homepage": "https://github.com/DeterminateSystems/nix-installer-action#readme",
"dependencies": {
"detsys-ts": "github:DeterminateSystems/detsys-ts",
"detsys-ts": "github:DeterminateSystems/detsys-ts#no-bundle",
"@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1",
"@actions/github": "^5.1.1",

View file

@ -18,8 +18,8 @@ dependencies:
specifier: ^2.0.1
version: 2.0.1
detsys-ts:
specifier: github:DeterminateSystems/detsys-ts
version: github.com/DeterminateSystems/detsys-ts/133464b52206591cd5ec69d1a1a4a588e91707f9
specifier: github:DeterminateSystems/detsys-ts#no-bundle
version: github.com/DeterminateSystems/detsys-ts/08afc332a1bfc634fea88bacafcbfddac665a1ac
fetch-retry:
specifier: ^5.0.6
version: 5.0.6
@ -5527,10 +5527,10 @@ packages:
engines: { node: ">=10" }
dev: true
github.com/DeterminateSystems/detsys-ts/133464b52206591cd5ec69d1a1a4a588e91707f9:
github.com/DeterminateSystems/detsys-ts/08afc332a1bfc634fea88bacafcbfddac665a1ac:
resolution:
{
tarball: https://codeload.github.com/DeterminateSystems/detsys-ts/tar.gz/133464b52206591cd5ec69d1a1a4a588e91707f9,
tarball: https://codeload.github.com/DeterminateSystems/detsys-ts/tar.gz/08afc332a1bfc634fea88bacafcbfddac665a1ac,
}
name: detsys-ts
version: 1.0.0

View file

@ -47,6 +47,7 @@ class NixInstallerAction {
this.idslib = new IdsToolbox({
name: "nix-installer",
fetchStyle: "nix-style",
legacySourcePrefix: "nix-installer",
});
this.platform = get_nix_platform();