29 lines
570 B
Nix
29 lines
570 B
Nix
|
{
|
||
|
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
|
||
|
];
|
||
|
};
|
||
|
});
|
||
|
}
|