| 1 |
{ |
| 2 |
description = "CodSpeed instrument hooks development environment"; |
| 3 |
|
| 4 |
inputs = { |
| 5 |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; |
| 6 |
flake-utils.url = "github:numtide/flake-utils"; |
| 7 |
}; |
| 8 |
|
| 9 |
outputs = |
| 10 |
{ |
| 11 |
self, |
| 12 |
nixpkgs, |
| 13 |
flake-utils, |
| 14 |
}: |
| 15 |
flake-utils.lib.eachDefaultSystem ( |
| 16 |
system: |
| 17 |
let |
| 18 |
pkgs = import nixpkgs { inherit system; }; |
| 19 |
commonBuildInputs = with pkgs; [ |
| 20 |
just |
| 21 |
zig |
| 22 |
clang |
| 23 |
cmake |
| 24 |
bazelisk |
| 25 |
python3 |
| 26 |
]; |
| 27 |
|
| 28 |
in |
| 29 |
{ |
| 30 |
devShells = { |
| 31 |
default = pkgs.mkShell { |
| 32 |
buildInputs = commonBuildInputs; |
| 33 |
shellHook = '' |
| 34 |
echo "Instrument hooks development environment" |
| 35 |
''; |
| 36 |
}; |
| 37 |
|
| 38 |
lsp = pkgs.mkShell { |
| 39 |
buildInputs = |
| 40 |
with pkgs; |
| 41 |
[ |
| 42 |
zls |
| 43 |
clang-tools |
| 44 |
] |
| 45 |
++ commonBuildInputs; |
| 46 |
shellHook = '' |
| 47 |
echo "Instrument hooks development environment with LSP" |
| 48 |
''; |
| 49 |
}; |
| 50 |
}; |
| 51 |
} |
| 52 |
); |
| 53 |
} |