diff options
author | figsoda <figsoda@pm.me> | 2021-11-16 21:00:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 21:00:48 -0500 |
commit | 6ad04bcb7d3a198c63823e037138013503e089fd (patch) | |
tree | 21bc7ae1e598ae53e7758aaf0ec41156bdc749c3 /pkgs/tools/system | |
parent | 141d3fc04ff684095d03675231ef6f102444f633 (diff) | |
parent | 0e9320dc5f2cf9914711ff44f1251a4c7bd0d30b (diff) |
Merge pull request #146243 from figsoda/treewide-rust-feature
treewide: use buildFeatures and checkFeatures for rust packages
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r-- | pkgs/tools/system/zenith/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/system/zenith/default.nix b/pkgs/tools/system/zenith/default.nix index 1e36614c4274..3705c9cad90c 100644 --- a/pkgs/tools/system/zenith/default.nix +++ b/pkgs/tools/system/zenith/default.nix @@ -18,12 +18,13 @@ rustPlatform.buildRustPackage rec { sha256 = "1bn364rmp0q86rd7vgv4n7x09cdf9m4njcaq92jnk85ni6h147ax"; }; - cargoBuildFlags = lib.optionals nvidiaSupport [ "--features" "nvidia" ]; cargoSha256 = "0c2mk2bcz4qjyqmf11yqhnhy4pqxr77b3c1gvr5jfmjshx4ff7v2"; nativeBuildInputs = lib.optional nvidiaSupport makeWrapper; buildInputs = lib.optionals stdenv.isDarwin [ IOKit ]; + buildFeatures = lib.optional nvidiaSupport "nvidia"; + postInstall = lib.optionalString nvidiaSupport '' wrapProgram $out/bin/zenith \ --suffix LD_LIBRARY_PATH : "/run/opengl-driver/lib" |