18 lines
455 B
Nix
18 lines
455 B
Nix
with (import <nixpkgs> {});
|
|
|
|
clangStdenv.mkDerivation {
|
|
name = "cursen";
|
|
nativeBuildInputs = with pkgs; [
|
|
cmake
|
|
pkg-config
|
|
|
|
notcurses.dev
|
|
|
|
clang-tools
|
|
clang
|
|
];
|
|
|
|
# Workaround as Clangd cannot see std header files, so include set of files manually just for Clangd
|
|
CXXFLAGS = "-isystem${pkgs.gcc.cc}/include/c++/14.3.0 -isystem${pkgs.gcc.cc}/include/c++/14.3.0/x86_64-unknown-linux-gnu -isystem${pkgs.glibc.dev}/include -I${notcurses.dev}";
|
|
}
|