aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: 3df804a46ff2a5b8a6e288c53d08c7d0f57f1396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

  outputs = { self, nixpkgs, ... }: let
      pkgs = import nixpkgs { system = "x86_64-linux"; };
    in {
      devShells.x86_64-linux.default = pkgs.mkShell {
        buildInputs = with pkgs; [
          # clang-tools provides a working clangd and MUST COME BEFORE clang!
          # https://discourse.nixos.org/t/get-clangd-to-find-standard-headers-in-nix-shell/11268
          clang-tools

          clang
          cmake
          ninja
        ];
      };
    };
}