mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Several nix fixes (#1737)
* Fixed nix c3c development shell * Fix unknown git hash on nix build
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
{
|
||||
lib,
|
||||
mkShell,
|
||||
clang-tools,
|
||||
c3c,
|
||||
}:
|
||||
}:
|
||||
mkShell.override {
|
||||
inherit (c3c) stdenv;
|
||||
} {
|
||||
name = "c3c-shell";
|
||||
|
||||
mkShell {
|
||||
inputsFrom = [
|
||||
c3c
|
||||
];
|
||||
|
||||
packages = [
|
||||
clang-tools
|
||||
c3c
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
ln -sf ${c3c}/compile_commands.json compile_commands.json
|
||||
'';
|
||||
# Usage: 'cmake . -Bbuild $C3_CMAKE_FLAGS' or 'cmake . -Bbuild $=C3_CMAKE_FLAGS' on zsh
|
||||
C3_CMAKE_FLAGS = lib.concatStringsSep " " c3c.cmakeFlags;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user