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

30 lines
569 B
Nix

{
description = "a minimal test development environment for rust";
inputs = {
nixpkgs = {
url = "nixpkgs/nixos-24.05";
flake = false;
};
};
outputs = inputs@{ nixpkgs, ... }:
{
devShell = {
x86_64-linux = let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in pkgs.mkShell {
packages = with pkgs; [
rustc gcc
];
shellHook = ''
export CC=gcc
echo -e "\x1B[0;33mentering rust minimalist test development environment...\x1B[0m"
'';
};
};
};
}