| 4 Jul 2025 |
@freexploit:trafkin.com | Redacted or Malformed Event | 02:55:56 |
dramforever | i'd say try including this 951538d as a patch | 02:56:59 |
dramforever | or maybe overriding the version and source like https://github.com/NixOS/nixpkgs/pull/415594 | 02:58:32 |
@freexploit:trafkin.com | Redacted or Malformed Event | 03:06:41 |
dramforever | oh okay | 03:07:39 |
dramforever | you've come in the deep end, i see | 03:07:49 |
dramforever | how are you building the thing to begin with? | 03:07:59 |
@freexploit:trafkin.com | Redacted or Malformed Event | 03:11:21 |
@freexploit:trafkin.com | Redacted or Malformed Event | 03:11:22 |
@freexploit:trafkin.com | Redacted or Malformed Event | 03:11:42 |
@freexploit:trafkin.com | Redacted or Malformed Event | 03:12:32 |
@freexploit:trafkin.com | Redacted or Malformed Event | 03:13:15 |
dramforever | are you sure you're new to nix :P | 03:15:17 |
dramforever | but anyway i'd say bring in an extra overlay to add a patch
overlays = [
(import rust-overlay)
(final: prev: {
mimalloc =
if final.stdenv.hostPlatform.isMusl
then
prev.mimalloc.overrideAttrs (old: {
patches = (old.patches or []) + [
(final.fetchpatch {
url = "https://github.com/microsoft/mimalloc/commit/951538d469f72532e43a2437d556a73518f5dde4.patch";
hash = ""; # TOFU, update with hash
})
];
})
else
prev.mimalloc;
})
];
| 03:15:32 |
dramforever | note that i haven't tested this, just typed it out | 03:15:43 |
dramforever | and the reason it's compiling mimalloc is just something depends on mimalloc | 03:16:04 |
@freexploit:trafkin.com | Redacted or Malformed Event | 03:16:30 |
@freexploit:trafkin.com | Redacted or Malformed Event | 03:17:48 |
dramforever | final.lib.fakeHash | 03:21:20 |
dramforever | or just leave it empty?? | 03:21:35 |
dramforever | * or just leave it empty? | 03:21:36 |
missbehaves | I'm trying to target a specific RISC-V toolchain for cross compilation, which is using arch rv32i and abi ilp32. I was using riscv32-none-elf but sadly it has differences and does not give me the format of binary i need. How do i build and configure the riscv toolchainfor my specific arch/abi ? | 09:53:00 |