zenith: unbreak on aarch64 platforms
This commit is contained in:
parent
1602f4034c
commit
bdcaa990de
1 changed files with 8 additions and 3 deletions
|
@ -8,6 +8,8 @@
|
|||
, llvmPackages
|
||||
}:
|
||||
|
||||
assert nvidiaSupport -> stdenv.isLinux;
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "zenith";
|
||||
version = "0.13.1";
|
||||
|
@ -19,6 +21,11 @@ rustPlatform.buildRustPackage rec {
|
|||
sha256 = "sha256-N/DvPVYGM/DjTvKvOlR60q6rvNyfAQlnvFnFG5nbUmQ=";
|
||||
};
|
||||
|
||||
# remove cargo config so it can find the linker on aarch64-linux
|
||||
postPatch = ''
|
||||
rm .cargo/config
|
||||
'';
|
||||
|
||||
cargoSha256 = "sha256-Y/vvRJpv82Uc+Bu3lbZxRsu4TL6sAjz5AWHAHkwh98Y=";
|
||||
|
||||
nativeBuildInputs = [ llvmPackages.clang ] ++ lib.optional nvidiaSupport makeWrapper;
|
||||
|
@ -39,8 +46,6 @@ rustPlatform.buildRustPackage rec {
|
|||
homepage = "https://github.com/bvaisvil/zenith";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bbigras ];
|
||||
# doesn't build on aarch64 https://github.com/bvaisvil/zenith/issues/19
|
||||
# see https://github.com/NixOS/nixpkgs/pull/88616
|
||||
platforms = platforms.x86;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue