add flake.nix

This commit is contained in:
Emile Clark-Boman 2025-08-25 15:01:50 +10:00
parent 5c056777d6
commit af68b5e63c

39
flake.nix Normal file
View file

@ -0,0 +1,39 @@
{
description = "DWL Development Shell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
};
outputs = {nixpkgs, ...}: let
system = "x86_64-linux";
in {
devShells."${system}".default = let
pkgs = import nixpkgs {
inherit system;
};
in
pkgs.mkShell {
packages = with pkgs; [
# NativeBuildInputs
installShellFiles
pkg-config
wayland-scanner
# BuildInputs
libinput
libxcb
libxkbcommon
pixman
wayland
wayland-protocols
wlroots
# XWayland
libX11
xcbutilwm
xwayland
];
};
};
}