Files
aoc/2024/day06/flake.nix
2025-12-01 11:25:06 +01:00

24 lines
541 B
Nix

{
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"
'';
};
});
}