zenith: 0.12.0 -> 0.13.1
This commit is contained in:
parent
a88758c4e1
commit
928e563a1d
|
@ -5,26 +5,29 @@
|
||||||
, IOKit
|
, IOKit
|
||||||
, nvidiaSupport ? false
|
, nvidiaSupport ? false
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
, llvmPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "zenith";
|
pname = "zenith";
|
||||||
version = "0.12.0";
|
version = "0.13.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bvaisvil";
|
owner = "bvaisvil";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1bn364rmp0q86rd7vgv4n7x09cdf9m4njcaq92jnk85ni6h147ax";
|
sha256 = "sha256-N/DvPVYGM/DjTvKvOlR60q6rvNyfAQlnvFnFG5nbUmQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "0c2mk2bcz4qjyqmf11yqhnhy4pqxr77b3c1gvr5jfmjshx4ff7v2";
|
cargoSha256 = "sha256-Y/vvRJpv82Uc+Bu3lbZxRsu4TL6sAjz5AWHAHkwh98Y=";
|
||||||
|
|
||||||
nativeBuildInputs = lib.optional nvidiaSupport makeWrapper;
|
nativeBuildInputs = [ llvmPackages.clang ] ++ lib.optional nvidiaSupport makeWrapper;
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [ IOKit ];
|
buildInputs = [ llvmPackages.libclang ] ++ 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