mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-24 01:21:11 +00:00
antigravity: rename to antigravity-ide
This commit is contained in:
committed by
John Titor
parent
ef919c1a8b
commit
9e37940901
@@ -181,9 +181,6 @@ stdenv.mkDerivation (
|
||||
buildFHSEnv customizedArgs;
|
||||
in
|
||||
{
|
||||
strictDeps = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
inherit
|
||||
pname
|
||||
version
|
||||
|
||||
22
pkgs/by-name/an/antigravity-ide/information.json
Normal file
22
pkgs/by-name/an/antigravity-ide/information.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"version": "2.0.3",
|
||||
"vscodeVersion": "1.107.0",
|
||||
"sources": {
|
||||
"x86_64-linux": {
|
||||
"url": "https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/2.0.3-6242596486512640/linux-x64/Antigravity%20IDE.tar.gz",
|
||||
"sha256": "00b5fd709fef02c9f81ab4edd77e8d5baf8b85842cc654fa016d7d0492cde803"
|
||||
},
|
||||
"aarch64-linux": {
|
||||
"url": "https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/2.0.3-6242596486512640/linux-arm/Antigravity%20IDE.tar.gz",
|
||||
"sha256": "8ba7073c71f43c625fbfb95bd0b0c5c7d854974d5b4cc90f6e0fff4a109259ba"
|
||||
},
|
||||
"x86_64-darwin": {
|
||||
"url": "https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/2.0.3-6242596486512640/darwin-x64/Antigravity%20IDE.zip",
|
||||
"sha256": "b9eb6c80ffd970a852d798592fa1b938493f9f9a3fd1778632e0386649a72ada"
|
||||
},
|
||||
"aarch64-darwin": {
|
||||
"url": "https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/2.0.3-6242596486512640/darwin-arm/Antigravity%20IDE.zip",
|
||||
"sha256": "b0504a817adb1f7485751db4ac53f910262b7facd8edcb091b0c81596a74e7dc"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,22 +14,22 @@ let
|
||||
information = (lib.importJSON ./information.json);
|
||||
source =
|
||||
information.sources."${hostPlatform.system}"
|
||||
or (throw "antigravity: unsupported system ${hostPlatform.system}");
|
||||
or (throw "antigravity-ide: unsupported system ${hostPlatform.system}");
|
||||
in
|
||||
buildVscode {
|
||||
inherit commandLineArgs useVSCodeRipgrep;
|
||||
inherit (information) version vscodeVersion;
|
||||
pname = "antigravity";
|
||||
pname = "antigravity-ide";
|
||||
|
||||
executableName = "antigravity";
|
||||
longName = "Antigravity";
|
||||
shortName = "Antigravity";
|
||||
libraryName = "antigravity";
|
||||
iconName = "antigravity";
|
||||
executableName = "antigravity-ide";
|
||||
longName = "Antigravity IDE";
|
||||
shortName = "Antigravity IDE";
|
||||
libraryName = "antigravity-ide";
|
||||
iconName = "antigravity-ide";
|
||||
|
||||
src = fetchurl { inherit (source) url sha256; };
|
||||
|
||||
sourceRoot = if hostPlatform.isDarwin then "Antigravity.app" else "Antigravity";
|
||||
sourceRoot = if hostPlatform.isDarwin then "Antigravity IDE.app" else "Antigravity IDE";
|
||||
|
||||
tests = { };
|
||||
updateScript = ./update.js;
|
||||
@@ -44,7 +44,7 @@ buildVscode {
|
||||
extraBuildCommands = (args.extraBuildCommands or "") + ''
|
||||
mkdir -p "$out/opt/google/chrome"
|
||||
'';
|
||||
runScript = writeShellScript "antigravity-wrapper" ''
|
||||
runScript = writeShellScript "antigravity-ide-wrapper" ''
|
||||
for candidate in google-chrome-stable google-chrome chromium-browser chromium; do
|
||||
if target=$(command -v "$candidate"); then
|
||||
${coreutils}/bin/ln -sf "$target" /opt/google/chrome/chrome
|
||||
@@ -56,10 +56,10 @@ buildVscode {
|
||||
};
|
||||
|
||||
meta = {
|
||||
mainProgram = "antigravity";
|
||||
mainProgram = "antigravity-ide";
|
||||
description = "Agentic development platform, evolving the IDE into the agent-first era";
|
||||
homepage = "https://antigravity.google";
|
||||
downloadPage = "https://antigravity.google/download";
|
||||
homepage = "https://antigravity.google/product/antigravity-ide";
|
||||
downloadPage = "https://antigravity.google/download#antigravity-ide";
|
||||
changelog = "https://antigravity.google/changelog";
|
||||
license = lib.licenses.unfree;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
@@ -71,6 +71,7 @@ buildVscode {
|
||||
maintainers = with lib.maintainers; [
|
||||
xiaoxiangmoe
|
||||
Zaczero
|
||||
schembriaiden
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -20,14 +20,15 @@ let version = "";
|
||||
let vscodeVersion = "";
|
||||
async function getLatestInformation(/** @type {"linux-x64" | "linux-arm64" | "darwin-arm64"} */ targetSystem) {
|
||||
/** @type {UpdateInfo} */
|
||||
const latestInfo = await (await fetch(`https://antigravity-auto-updater-974169037036.us-central1.run.app/api/update/${targetSystem}/stable/latest`)).json();
|
||||
const latestInfo = await (await fetch(`https://antigravity-ide-auto-updater-974169037036.us-central1.run.app/api/update/${targetSystem}/stable/latest`)).json();
|
||||
const newVersion = /\/antigravity\/stable\/([\d.]+)-[\d]+/.exec(latestInfo.url)?.[1] ?? ""; // Current API lack version field now, we need to parse it from the URL temporarily.
|
||||
assert(newVersion !== "", `Could not parse Antigravity IDE version from ${latestInfo.url}`);
|
||||
assert(version === '' || version === newVersion, `Version mismatch: ${version}(linux-x64) != ${newVersion}(${targetSystem})`);
|
||||
version = newVersion;
|
||||
assert(vscodeVersion === '' || vscodeVersion === latestInfo.productVersion, `VSCode version mismatch: ${vscodeVersion}(linux-x64) != ${latestInfo.productVersion}(${targetSystem})`);
|
||||
vscodeVersion = latestInfo.productVersion;
|
||||
return {
|
||||
url: latestInfo.url,
|
||||
url: latestInfo.url.replaceAll(" ", "%20"),
|
||||
sha256: latestInfo.sha256hash,
|
||||
};
|
||||
}
|
||||
@@ -40,4 +41,4 @@ const sources = {
|
||||
/** @type {Information} */
|
||||
const information = { version, vscodeVersion, sources };
|
||||
fs.writeFileSync(path.join(import.meta.dirname, "./information.json"), JSON.stringify(information, null, 2) + "\n", "utf-8");
|
||||
console.log(`[update] Updating Antigravity complete, version: ${version}, vscodeVersion: ${vscodeVersion}`);
|
||||
console.log(`[update] Updating Antigravity IDE complete, version: ${version}, vscodeVersion: ${vscodeVersion}`);
|
||||
@@ -1,18 +0,0 @@
|
||||
{
|
||||
"version": "1.23.2",
|
||||
"vscodeVersion": "1.107.0",
|
||||
"sources": {
|
||||
"x86_64-linux": {
|
||||
"url": "https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/1.23.2-4781536860569600/linux-x64/Antigravity.tar.gz",
|
||||
"sha256": "5232a4048ff4fa15685d9a981ba4fba573e297f3efc9b76f638e794baf775725"
|
||||
},
|
||||
"aarch64-linux": {
|
||||
"url": "https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/1.23.2-4781536860569600/linux-arm/Antigravity.tar.gz",
|
||||
"sha256": "64d11085f17edc691adbe8952d59887f257d58448705dc2a19dfa23890d36df1"
|
||||
},
|
||||
"aarch64-darwin": {
|
||||
"url": "https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/1.23.2-4781536860569600/darwin-arm/Antigravity.zip",
|
||||
"sha256": "4a8a90feed7078dae30d1dbcb268a0497c103ba76df7012a4467587aa7cffdf8"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -305,6 +305,9 @@ mapAliases {
|
||||
ansible_2_18 = throw "ansible_2_18 has been removed; use overridePythonAttrs if you need a specific version"; # Added 2025-11-10
|
||||
ansible_2_19 = throw "ansible_2_19 has been removed; use overridePythonAttrs if you need a specific version"; # Added 2025-11-10
|
||||
antibody = throw "antibody has been removed because it was deprecated and archived upstream. Consider using antidote instead"; # Added 2026-01-16
|
||||
antigravity = warnAlias "'antigravity' has been renamed to 'antigravity-ide'" antigravity-ide; # Added 2026-05-20
|
||||
antigravity-fhs = warnAlias "'antigravity-fhs' has been renamed to 'antigravity-ide-fhs'" antigravity-ide-fhs; # Added 2026-05-20
|
||||
antigravity-fhsWithPackages = warnAlias "'antigravity-fhsWithPackages' has been renamed to 'antigravity-ide-fhsWithPackages'" antigravity-ide-fhsWithPackages; # Added 2026-05-20
|
||||
antlr4_8 = throw "antlr4_8 has been removed. Consider using a more recent version of antlr4"; # Added 2025-10-20
|
||||
ao = throw "'ao' has been renamed to/replaced by 'libfive'"; # Converted to throw 2025-10-27
|
||||
apacheAnt = throw "'apacheAnt' has been renamed to/replaced by 'ant'"; # Converted to throw 2025-10-27
|
||||
|
||||
@@ -9633,8 +9633,8 @@ with pkgs;
|
||||
vscodium-fhs = vscodium.fhs;
|
||||
vscodium-fhsWithPackages = vscodium.fhsWithPackages;
|
||||
|
||||
antigravity-fhs = antigravity.fhs;
|
||||
antigravity-fhsWithPackages = antigravity.fhsWithPackages;
|
||||
antigravity-ide-fhs = antigravity-ide.fhs;
|
||||
antigravity-ide-fhsWithPackages = antigravity-ide.fhsWithPackages;
|
||||
|
||||
code-cursor-fhs = code-cursor.fhs;
|
||||
code-cursor-fhsWithPackages = code-cursor.fhsWithPackages;
|
||||
|
||||
Reference in New Issue
Block a user