mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
* Add support for nix flakes * Added debug build type for flake.nix; Got rid of redundant version check in nix/default.nix * Added dev shell with compile_commands.json into flake.nix * Fixed issue with generated compile_commands.json while creating c3c derivation with nix. Deduced devShells in flake.nix to nix/shell.nix
21 lines
214 B
Nix
21 lines
214 B
Nix
{
|
|
mkShell,
|
|
clang-tools,
|
|
c3c,
|
|
}:
|
|
|
|
mkShell {
|
|
inputsFrom = [
|
|
c3c
|
|
];
|
|
|
|
packages = [
|
|
clang-tools
|
|
c3c
|
|
];
|
|
|
|
shellHook = ''
|
|
ln -sf ${c3c}/compile_commands.json compile_commands.json
|
|
'';
|
|
}
|