zenith: refactor (#372474)

This commit is contained in:
Weijia Wang
2025-01-11 03:12:41 +01:00
committed by GitHub
3 changed files with 3 additions and 2187 deletions
@@ -3,7 +3,6 @@
stdenv,
rustPlatform,
fetchFromGitHub,
IOKit,
nvidiaSupport ? false,
makeWrapper,
}:
@@ -26,16 +25,10 @@ rustPlatform.buildRustPackage rec {
rm .cargo/config
'';
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"heim-0.1.0-rc.1" = "sha256-TKEG0YxF44wLz+qxpS/VfRKucqyl97t3PDxjPajbD58=";
"sysinfo-0.15.1" = "sha256-faMxXEHL7DFQLYrAJ+yBL6yiepZotofPF2+SizGQj4A=";
};
};
useFetchCargoVendor = true;
cargoHash = "sha256-xfp+nR4ihaTO4AZHizYg4qqf9MR030Qb5bN2nzhbytQ=";
nativeBuildInputs = [ rustPlatform.bindgenHook ] ++ lib.optional nvidiaSupport makeWrapper;
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ IOKit ];
buildFeatures = lib.optional nvidiaSupport "nvidia";
-2172
View File
File diff suppressed because it is too large Load Diff
+1 -6
View File
@@ -5643,14 +5643,9 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Foundation;
};
zenith = callPackage ../tools/system/zenith {
inherit (darwin.apple_sdk.frameworks) IOKit;
};
# Nvidia support does not require any propietary libraries, so CI can build it.
# Note that when enabling this unconditionally, non-nvidia users will always have an empty "GPU" section.
zenith-nvidia = callPackage ../tools/system/zenith {
inherit (darwin.apple_sdk.frameworks) IOKit;
zenith-nvidia = zenith.override {
nvidiaSupport = true;
};