Closed kush930 closed 1 year ago
@fricklerhandwerk I think this should be moved to nixpkgs
This seems like an issue with the nix
Rust crate (https://crates.io/crates/nix) and not the Nix package manager. Please file your issue with them instead.
Hi all,
can anyone suggest me how to add local patches in cargo.
when i was looking inside source code,I found in one file linux.rs is not having riscv support, manually i added riscv in linux.rs but its failing.
now i want to apply patch in cargo, i have no any idea how to add patch in cargo.
i created patch by using diff -Naur a b > riscv.patch
riscv.patch-
--- a/linux.rs
+++ b/linux.rs
@@ -33,6 +33,8 @@
target_arch = "arm",
target_arch = "s390x",
target_arch = "x86_64",
+ target_arch = "riscv32",
+ target_arch = "riscv64",
target_arch = "aarch64"))]
mod consts {
#[doc(hidden)]
i added riscv line in linux.rs file.
// "Generic" ioctl protocol
#[cfg(any(
target_arch = "x86",
target_arch = "arm",
target_arch = "s390x",
target_arch = "x86_64",
target_arch = "aarch64",
target_arch = "riscv32",
target_arch = "riscv64"
))]
with the help of Cargo.toml file we can apply patches, but i want to know how to add,.
Can anyone help me in this.
T&R luvkhush
Once more, your issue appears to have nothing to do with the Nix package manager (this repo), and instead is a problem with the nix
Rust crate, which provides Rust-y bindings to "various *nix system functions".
Please file your issue with them.
Hi all,
I am building firefox, during building time i am facing nix package issue.
Can anyone help me in this, I want to build nix v0.15.0 on riscv64 platform.
T&R luvkhush