Files
waylight/flake.nix
Slendi d368760f78 A lot
Signed-off-by: Slendi <slendi@socopon.com>
2025-10-16 19:48:02 +03:00

71 lines
1.5 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 = with pkgs; [
pkg-config
wayland
wayland-protocols
wlr-protocols
wayland-scanner
libGL
libportal
glib
libxkbcommon
fontconfig
harfbuzz
sqlite
zenity
];
buildInputs = with pkgs; [
cmake
ninja
];
in
{
devShells.default =
pkgs.mkShell.override { stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.gcc15Stdenv; }
{
packages =
with pkgs;
[
llvmPackages_21.clang-tools
lldb
gdb
codespell
doxygen
gtest
cppcheck
inotify-tools
]
++ buildInputs
++ nativeBuildInputs
++ pkgs.lib.optionals pkgs.stdenv.isLinux (
with pkgs;
[
valgrind-light
]
);
env = { };
shellHook = '''';
};
}
);
}