Merge pull request #234298 from wegank/zenith-refactor
zenith: migrate to bindgenHook
This commit is contained in:
commit
3eb0cc7c0b
1 changed files with 2 additions and 5 deletions
|
@ -5,7 +5,6 @@
|
||||||
, IOKit
|
, IOKit
|
||||||
, nvidiaSupport ? false
|
, nvidiaSupport ? false
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, llvmPackages
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert nvidiaSupport -> stdenv.isLinux;
|
assert nvidiaSupport -> stdenv.isLinux;
|
||||||
|
@ -34,13 +33,11 @@ rustPlatform.buildRustPackage rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ llvmPackages.clang ] ++ lib.optional nvidiaSupport makeWrapper;
|
nativeBuildInputs = [ rustPlatform.bindgenHook ] ++ lib.optional nvidiaSupport makeWrapper;
|
||||||
buildInputs = [ llvmPackages.libclang ] ++ lib.optionals stdenv.isDarwin [ IOKit ];
|
buildInputs = lib.optionals stdenv.isDarwin [ IOKit ];
|
||||||
|
|
||||||
buildFeatures = lib.optional nvidiaSupport "nvidia";
|
buildFeatures = lib.optional nvidiaSupport "nvidia";
|
||||||
|
|
||||||
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
|
||||||
|
|
||||||
postInstall = lib.optionalString nvidiaSupport ''
|
postInstall = lib.optionalString nvidiaSupport ''
|
||||||
wrapProgram $out/bin/zenith \
|
wrapProgram $out/bin/zenith \
|
||||||
--suffix LD_LIBRARY_PATH : "/run/opengl-driver/lib"
|
--suffix LD_LIBRARY_PATH : "/run/opengl-driver/lib"
|
||||||
|
|
Loading…
Reference in a new issue