Skip to content

Commit e606319

Browse files
committed
nushell: update to use libgit2 1.9
Signed-off-by: Rui Chen <[email protected]>
1 parent 8b773b2 commit e606319

File tree

1 file changed

+52
-4
lines changed

1 file changed

+52
-4
lines changed

Formula/n/nushell.rb

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
class Nushell < Formula
22
desc "Modern shell for the GitHub era"
33
homepage "https://www.nushell.sh"
4-
url "https://github.com/nushell/nushell/archive/refs/tags/0.101.0.tar.gz"
5-
sha256 "43e4a123e86f0fb4754e40d0e2962b69a04f8c2d58470f47cb9be81daabab347"
64
license "MIT"
7-
revision 1
5+
revision 2
86
head "https://github.com/nushell/nushell.git", branch: "main"
97

8+
stable do
9+
url "https://github.com/nushell/nushell/archive/refs/tags/0.101.0.tar.gz"
10+
sha256 "43e4a123e86f0fb4754e40d0e2962b69a04f8c2d58470f47cb9be81daabab347"
11+
12+
# libgit2 1.9 build patch
13+
patch :DATA
14+
end
15+
1016
livecheck do
1117
url :stable
1218
regex(/v?(\d+(?:[._]\d+)+)/i)
@@ -30,7 +36,7 @@ class Nushell < Formula
3036

3137
on_linux do
3238
depends_on "pkgconf" => :build
33-
depends_on "libgit2@1.8" # for `nu_plugin_gstat`
39+
depends_on "libgit2" # for `nu_plugin_gstat`
3440
depends_on "libx11"
3541
depends_on "libxcb"
3642
end
@@ -50,3 +56,45 @@ def install
5056
pipe_output("#{bin}/nu -c '{ foo: 1, bar: homebrew_test} | get bar'", nil)
5157
end
5258
end
59+
60+
__END__
61+
diff --git a/Cargo.lock b/Cargo.lock
62+
index 0398b71..9d6021a 100644
63+
--- a/Cargo.lock
64+
+++ b/Cargo.lock
65+
@@ -1865,9 +1865,9 @@ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
66+
67+
[[package]]
68+
name = "git2"
69+
-version = "0.19.0"
70+
+version = "0.20.0"
71+
source = "registry+https://github.com/rust-lang/crates.io-index"
72+
-checksum = "b903b73e45dc0c6c596f2d37eccece7c1c8bb6e4407b001096387c63d0d93724"
73+
+checksum = "3fda788993cc341f69012feba8bf45c0ba4f3291fcc08e214b4d5a7332d88aff"
74+
dependencies = [
75+
"bitflags 2.6.0",
76+
"libc",
77+
@@ -2600,9 +2600,9 @@ dependencies = [
78+
79+
[[package]]
80+
name = "libgit2-sys"
81+
-version = "0.17.0+1.8.1"
82+
+version = "0.18.0+1.9.0"
83+
source = "registry+https://github.com/rust-lang/crates.io-index"
84+
-checksum = "10472326a8a6477c3c20a64547b0059e4b0d086869eee31e6d7da728a8eb7224"
85+
+checksum = "e1a117465e7e1597e8febea8bb0c410f1c7fb93b1e1cddf34363f8390367ffec"
86+
dependencies = [
87+
"cc",
88+
"libc",
89+
diff --git a/crates/nu_plugin_gstat/Cargo.toml b/crates/nu_plugin_gstat/Cargo.toml
90+
index 3255936..f9d8767 100644
91+
--- a/crates/nu_plugin_gstat/Cargo.toml
92+
+++ b/crates/nu_plugin_gstat/Cargo.toml
93+
@@ -19,4 +19,4 @@ bench = false
94+
nu-plugin = { path = "../nu-plugin", version = "0.101.0" }
95+
nu-protocol = { path = "../nu-protocol", version = "0.101.0" }
96+
97+
-git2 = "0.19"
98+
\ No newline at end of file
99+
+git2 = "0.20"
100+
\ No newline at end of file

0 commit comments

Comments
 (0)