Files
bfl/flake.nix
Slendi d6726f7e8b inital commit
Signed-off-by: Slendi <slendi@socopon.com>
2025-09-08 03:04:51 +03:00

53 lines
1.1 KiB
Nix

{
description = "My flake";
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
nativeBuildInputs = [ ];
buildInputs = with pkgs; [
cmake
ninja
];
in
{
devShells.default = pkgs.mkShell.override { stdenv = pkgs.llvmPackages_21.libcxxStdenv; } {
packages =
with pkgs;
[
llvmPackages_21.clang-tools
lldb
codespell
doxygen
gtest
cppcheck
]
++ buildInputs
++ nativeBuildInputs
++ pkgs.lib.optionals pkgs.stdenv.isLinux (
with pkgs;
[
valgrind-light
]
);
env = { };
shellHook = '''';
};
}
);
}