clean up the flake a bit

This commit is contained in:
Aaron Honeycutt 2025-04-17 13:04:57 -06:00
parent daa701753d
commit e2450857be

View file

@ -16,11 +16,14 @@
naersk' = pkgs.callPackage naersk {}; naersk' = pkgs.callPackage naersk {};
# Setting variables that everything uses
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
CLANG_PATH = "${pkgs.llvmPackages.clang}/bin/clang";
in rec { in rec {
# For `nix build` & `nix run`: # For `nix build` & `nix run`:
defaultPackage = naersk'.buildPackage { defaultPackage = naersk'.buildPackage {
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib"; inherit LIBCLANG_PATH CLANG_PATH;
CLANG_PATH = "${pkgs.llvmPackages.clang}/bin/clang";
buildInputs = with pkgs; [ pkg-config openssl ]; buildInputs = with pkgs; [ pkg-config openssl ];
nativeBuildInputs = with pkgs; [ util-linux.dev ]; nativeBuildInputs = with pkgs; [ util-linux.dev ];
src = ./.; src = ./.;
@ -28,8 +31,7 @@
# For `nix develop` (optional, can be skipped): # For `nix develop` (optional, can be skipped):
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib"; inherit LIBCLANG_PATH CLANG_PATH;
CLANG_PATH = "${pkgs.llvmPackages.clang}/bin/clang";
buildInputs = with pkgs; [ pkg-config openssl ]; buildInputs = with pkgs; [ pkg-config openssl ];
nativeBuildInputs = with pkgs; [ rustc cargo util-linux.dev ]; nativeBuildInputs = with pkgs; [ rustc cargo util-linux.dev ];
}; };