Skip to content

Commit 42ee065

Browse files
authored
edgedb: change name to gel, 6.1.2 -> 7.0.3 (#384703)
2 parents 69636b1 + 7a00bc5 commit 42ee065

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
diff --git a/src/portable/install.rs b/src/portable/install.rs
2-
index 15944e4..f873349 100644
3-
--- a/src/portable/install.rs
4-
+++ b/src/portable/install.rs
5-
@@ -134,8 +134,16 @@ fn unpack_package(cache_file: &Path, target_dir: &Path) -> anyhow::Result<()> {
1+
diff --git a/src/portable/server/install.rs b/src/portable/server/install.rs
2+
index feb47f1..157d17a 100644
3+
--- a/src/portable/server/install.rs
4+
+++ b/src/portable/server/install.rs
5+
@@ -229,8 +229,16 @@ fn unpack_package(cache_file: &Path, target_dir: &Path) -> anyhow::Result<()> {
66
for entry in arch.entries()? {
77
let mut entry = entry?;
88
let path = entry.path()?;
99
+ let is_inside_bin = {
1010
+ let mut path_iter = path.iter();
11-
+ path_iter.next(); // discards first folder
11+
+ path_iter.next(); // discards first path
1212
+ path_iter.as_path().starts_with("bin")
1313
+ };
1414
if let Some(path) = build_path(&target_dir, &path)? {
@@ -20,9 +20,9 @@ index 15944e4..f873349 100644
2020
}
2121
}
2222
bar.finish_and_clear();
23-
@@ -222,3 +230,11 @@ pub fn package(pkg_info: &PackageInfo) -> anyhow::Result<InstallInfo> {
24-
25-
Ok(info)
23+
@@ -244,3 +252,12 @@ fn unlink_cache(cache_file: &Path) {
24+
})
25+
.ok();
2626
}
2727
+
2828
+fn nix_patchelf_if_needed(dest_path: &Path) {
@@ -32,3 +32,4 @@ index 15944e4..f873349 100644
3232
+ .arg(dest_path)
3333
+ .output();
3434
+}
35+
+

pkgs/by-name/ed/edgedb/package.nix renamed to pkgs/by-name/ge/gel/package.nix

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@
1111
xz,
1212
replaceVars,
1313
# for passthru.tests:
14-
edgedb,
14+
gel,
1515
testers,
1616
}:
1717
rustPlatform.buildRustPackage rec {
18-
pname = "edgedb";
19-
version = "6.1.2";
18+
pname = "gel";
19+
version = "7.0.3";
2020

2121
src = fetchFromGitHub {
22-
owner = "edgedb";
23-
repo = "edgedb-cli";
22+
owner = "geldata";
23+
repo = "gel-cli";
2424
tag = "v${version}";
25-
hash = "sha256-7epi7cF6u3Y/Fomcd1+lQfIIRKzuqL6Qk3gTZGZnjv8=";
25+
hash = "sha256-QP4LtLgF2OWCsPCFzpLR8k/RetfEevSd8Uv/PciHCwk=";
2626
fetchSubmodules = true;
2727
};
2828

2929
cargoDeps = rustPlatform.fetchCargoVendor {
3030
inherit pname version src;
31-
hash = "sha256-Iq960LU3Xxu5LHBENsZ48diPVJrdTHxtChtSp7yghCw=";
31+
hash = "sha256-s8UKYZs4GorM0qvAvE+HL+Qma2x05IDtuqYebMDrZHk=";
3232
};
3333

3434
nativeBuildInputs = [
@@ -60,16 +60,21 @@ rustPlatform.buildRustPackage rec {
6060
OPENSSL_NO_VENDOR = true;
6161
};
6262

63+
# cli warns when edgedb found but gel doesn't
64+
postInstall = ''
65+
mv $out/bin/edgedb $out/bin/gel
66+
'';
67+
6368
doCheck = false;
6469

6570
passthru.tests.version = testers.testVersion {
66-
package = edgedb;
67-
command = "edgedb --version";
71+
package = gel;
72+
command = "gel --version";
6873
};
6974

7075
meta = {
71-
description = "EdgeDB cli";
72-
homepage = "https://www.edgedb.com/docs/cli/index";
76+
description = "Gel cli";
77+
homepage = "https://docs.geldata.com/reference/cli";
7378
license = with lib.licenses; [
7479
asl20
7580
# or
@@ -79,6 +84,6 @@ rustPlatform.buildRustPackage rec {
7984
ahirner
8085
kirillrdy
8186
];
82-
mainProgram = "edgedb";
87+
mainProgram = "gel";
8388
};
8489
}

pkgs/top-level/aliases.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ mapAliases {
403403
ec2-utils = amazon-ec2-utils; # Added 2022-02-01
404404

405405
edUnstable = throw "edUnstable was removed; use ed instead"; # Added 2024-07-01
406+
edgedb = throw "edgedb replaced to gel because of change of upstream"; # Added 2025-02-24
406407
elasticsearch7Plugins = elasticsearchPlugins;
407408
electronplayer = throw "'electronplayer' has been removed as it had been discontinued upstream since October 2024"; # Added 2024-12-17
408409

0 commit comments

Comments
 (0)