flakes/c/flake.nix

33 lines
644 B
Nix
Raw Permalink Normal View History

2023-09-27 15:22:47 +02:00
{
description = "C Flake";
2024-10-25 15:15:02 +02:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
2023-09-27 15:22:47 +02:00
2024-10-25 15:15:02 +02:00
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
2023-09-27 15:22:47 +02:00
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
cmake
gcc
gnumake
2024-10-25 15:15:02 +02:00
2023-09-27 15:22:47 +02:00
valgrind
2024-10-25 15:15:02 +02:00
astyle
2023-09-27 15:22:47 +02:00
# You might want to use your own IDE.
2024-11-10 20:22:03 +01:00
(jetbrains.plugins.addPlugins jetbrains.clion [ "github-copilot" ])
2023-09-27 15:22:47 +02:00
];
};
});
}