Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix compilation error due to cmake version (#1708)

Divanshu Grover82f7dc2c98e3
diff --git a/Cargo.lock b/Cargo.lock
index 1c2f1471a..a67dc2e59 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3572,6 +3572,14 @@ dependencies = [
"cmake",
]
+[[package]]
+name = "libsamplerate-sys"
+version = "0.1.12"
+source = "git+https://github.com/divanshu-go/libsamplerate-sys.git?rev=6545fdd165673fce30d4ed5e82b845adc7b2faac#6545fdd165673fce30d4ed5e82b845adc7b2faac"
+dependencies = [
+ "cmake",
+]
+
[[package]]
name = "libsqlite3-sys"
version = "0.26.0"
@@ -5848,7 +5856,15 @@ version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e032b2b24715c4f982f483ea3abdb3c9ba444d9f63e87b2843d6f998f5ba2698"
dependencies = [
- "libsamplerate-sys",
+ "libsamplerate-sys 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
+]
+
+[[package]]
+name = "samplerate"
+version = "0.2.4"
+source = "git+https://github.com/divanshu-go/rust-samplerate.git?rev=bf8415d5ac33940bb5a52bd23b24ca9a56f96792#bf8415d5ac33940bb5a52bd23b24ca9a56f96792"
+dependencies = [
+ "libsamplerate-sys 0.1.12 (git+https://github.com/divanshu-go/libsamplerate-sys.git?rev=6545fdd165673fce30d4ed5e82b845adc7b2faac)",
]
[[package]]
@@ -5898,7 +5914,7 @@ dependencies = [
"infer",
"knf-rs",
"lazy_static",
- "libsamplerate-sys",
+ "libsamplerate-sys 0.1.12 (git+https://github.com/divanshu-go/libsamplerate-sys.git?rev=6545fdd165673fce30d4ed5e82b845adc7b2faac)",
"log",
"ndarray 0.16.1",
"oasgen",
@@ -5910,7 +5926,7 @@ dependencies = [
"realfft",
"reqwest 0.12.12",
"rubato",
- "samplerate",
+ "samplerate 0.2.4 (git+https://github.com/divanshu-go/rust-samplerate.git?rev=bf8415d5ac33940bb5a52bd23b24ca9a56f96792)",
"screenpipe-core",
"screenpipe-db",
"screenpipe-events",
@@ -8118,7 +8134,7 @@ dependencies = [
"ndarray 0.16.1",
"ort",
"ringbuffer",
- "samplerate",
+ "samplerate 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
diff --git a/screenpipe-audio/Cargo.toml b/screenpipe-audio/Cargo.toml
index 7ea99c62f..d19a66018 100644
--- a/screenpipe-audio/Cargo.toml
+++ b/screenpipe-audio/Cargo.toml
@@ -88,8 +88,8 @@ ort = { version = "=2.0.0-rc.6", features = [
"cuda",
] }
esaxx-rs = "0.1.10"
-samplerate = { version = "0.2.4" }
-libsamplerate-sys = "0.1.10"
+samplerate = { git = "https://github.com/divanshu-go/rust-samplerate.git", rev = "bf8415d5ac33940bb5a52bd23b24ca9a56f96792" }
+libsamplerate-sys = { git = "https://github.com/divanshu-go/libsamplerate-sys.git", rev = "6545fdd165673fce30d4ed5e82b845adc7b2faac" }
[target.'cfg(target_os = "macos")'.dependencies]
once_cell = "1.17.1"