「🎉」 init(2025): day 1
This commit is contained in:
23
2024/day06/flake.nix
Normal file
23
2024/day06/flake.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
description = "a development environment for the c programming language";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-24.11";
|
||||
};
|
||||
|
||||
outputs = { self, flake-utils, nixpkgs, ... }:
|
||||
flake-utils.lib.eachDefaultSystem(system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [ clang gcc valgrind gdb ];
|
||||
hardeningDisable = [ "all" ];
|
||||
buildInputs = with pkgs; [];
|
||||
shellHook = ''
|
||||
echo -e "\x1B[0;33mentering c environment...\x1B[0m"
|
||||
'';
|
||||
};
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user