Skip to content

Commit d653059

Browse files
committed
chore: use clang to build aws-lc-rs
1 parent 1d62830 commit d653059

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

flake.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description = "Development environment flake";
33

44
inputs = {
5-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
66
fenix = {
77
url = "github:nix-community/fenix";
88
inputs.nixpkgs.follows = "nixpkgs";
@@ -18,12 +18,14 @@
1818
psycopg
1919
]);
2020
buildInputs = with pkgs; [
21+
llvmPackages.libclang
2122
];
2223
in
2324
{
2425
devShells.default = pkgs.mkShell {
2526
nativeBuildInputs = with pkgs; [
2627
pkg-config
28+
clang
2729
git
2830
mold
2931
(fenix.packages.${system}.stable.withComponents [
@@ -42,6 +44,10 @@
4244
];
4345

4446
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
47+
shellHook = ''
48+
export CC=clang
49+
export CXX=clang++
50+
'';
4551
};
4652
});
4753
}

0 commit comments

Comments
 (0)