Skip to content

Commit

Permalink
feat: Override clangStdenv for mkShell
Browse files Browse the repository at this point in the history
  • Loading branch information
uttarayan21 committed Jan 3, 2025
1 parent f45c88f commit 43b0aac
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,23 @@
};

devShells = {
default = pkgs.mkShell {
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
nativeBuildInputs = with pkgs; [pkg-config];
buildInputs = with pkgs; [ddcutil];
packages = with pkgs; [
stableToolchainWithRustAnalyzer
cargo-nextest
cargo-deny
ddcutil
pkg-config
rust-bindgen
cargo-outdated
];
};
default =
pkgs.mkShell.override {
stdenv = pkgs.clangStdenv;
} {
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
nativeBuildInputs = with pkgs; [pkg-config];
buildInputs = with pkgs; [ddcutil];
packages = with pkgs; [
stableToolchainWithRustAnalyzer
cargo-nextest
cargo-deny
ddcutil
pkg-config
rust-bindgen
cargo-outdated
];
};
};
}
)
Expand Down

0 comments on commit 43b0aac

Please sign in to comment.