32 lines
644 B
Nix
32 lines
644 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" ])
|
|
];
|
|
};
|
|
});
|
|
}
|