zenith: unbreak on aarch64 platforms

This commit is contained in:
Weijia Wang 2023-02-02 10:10:44 +01:00
parent 1602f4034c
commit bdcaa990de

View file

@ -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;
};
}