Created file for builtins and fixed a bug about expansion not working correctly

This commit is contained in:
Maix0 2024-08-10 19:50:26 +02:00
parent 1ecfba4340
commit 3f08544384
15 changed files with 243 additions and 429 deletions

View file

@ -3,21 +3,22 @@
inputs.nixpkgs.url = "github:nixos/nixpkgs";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.generic_c.url = "github:Maix0/generic_c";
inputs.c_formatter_42.url = "github:Maix0/c_formatter_42-flake";
inputs.rust-overlay.url = "github:oxalica/rust-overlay";
# inputs.generic_c.url = "github:Maix0/generic_c";
# inputs.c_formatter_42.url = "github:Maix0/c_formatter_42-flake";
# inputs.rust-overlay.url = "github:oxalica/rust-overlay";
outputs = {
self,
nixpkgs,
flake-utils,
generic_c,
c_formatter_42,
rust-overlay,
# generic_c,
# c_formatter_42,
# rust-overlay,
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {
pkgs = nixpkgs.legacyPackages.${system};
/*import nixpkgs {
inherit system;
overlays = [
(import rust-overlay)
@ -28,21 +29,22 @@
};
})
];
};
};*/
in {
devShell = pkgs.mkShell {
packages = with pkgs; [
clang-analyzer
# clang-analyzer
clang
gnumake
generic_c.packages.${system}.default
c_formatter_42.packages.${system}.default
llvmPackages.bintools
norminette
tokei
coreutils
# generic_c.packages.${system}.default
# c_formatter_42.packages.${system}.default
# llvmPackages.bintools
# norminette
# tokei
# coreutils
#];
] ++ (if system == "x86_64-linux" then [valgrind valgrind.dev] else []);
ASAN_OPTIONS = "strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1";
#ASAN_OPTIONS = "strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1";
};
}
);