Add C flake

This commit is contained in:
Tibo De Peuter 2023-09-27 15:22:47 +02:00
parent 368c992a74
commit 7f731d6a02
2 changed files with 89 additions and 0 deletions

28
c/flake.nix Normal file
View file

@ -0,0 +1,28 @@
{
description = "C Flake";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
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
# You might want to use your own IDE.
jetbrains.clion
];
};
});
}