flakes/c/flake.nix
2024-10-25 15:15:02 +02:00

32 lines
646 B
Nix

{
description = "C Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
cmake
gcc
gnumake
valgrind
astyle
# You might want to use your own IDE.
# (jetbrains.plugins.addPlugins jetbrains.clion [ "github-copilot" ])
];
};
});
}