mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
laurel: fix compiling on aarch64-linux
This solves the following build error: ~~~ error: linker `aarch64-linux-gnu-gcc` not found | = note: No such file or directory (os error 2) ~~~ Which happens on aarch64-linux and armv7-linux because upstream redirects the linker for that platform in https://github.com/threathunters-io/laurel/blob/v0.6.3/.cargo/config.toml Since there is nothing else besides linker redirects in there, we simply delete the whole file.
This commit is contained in:
parent
5e1a7105f5
commit
5d0bff94ca
@ -17,6 +17,13 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
cargoHash = "sha256-uQs+BUBWdbSoE3UqrSjqImVm5uwYf7XiTFtGG1BcFZI=";
|
||||
|
||||
postPatch = ''
|
||||
# Upstream started to redirect aarch64-unknown-linux-gnu to aarch64-linux-gnu-gcc
|
||||
# for their CI which breaks compiling on aarch64 in nixpkgs:
|
||||
# error: linker `aarch64-linux-gnu-gcc` not found
|
||||
rm .cargo/config.toml
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
||||
buildInputs = [ acl ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user