mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2025-08-03 12:10:22 -04:00
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
description = "flake for my dwl";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
}: let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
packages.${system}.default = pkgs.stdenv.mkDerivation rec {
|
|
pname = "dwl-fabric";
|
|
version = "0.1";
|
|
|
|
# Set the source to your local dwl directory
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
pkg-config
|
|
wayland # Provides the 'wayland-scanner' tool
|
|
wayland-scanner
|
|
libinput
|
|
pixman
|
|
git
|
|
];
|
|
# Add the necessary build dependencies for dwl
|
|
buildInputs = with pkgs; [
|
|
xwayland
|
|
libxkbcommon
|
|
wayland-protocols
|
|
wlroots
|
|
xorg.libxcb
|
|
xorg.xcbutil
|
|
xorg.xcbutilwm
|
|
xorg.xcbutilkeysyms
|
|
xorg.xcbutilimage
|
|
xorg.xcbutilcursor
|
|
xorg.xcbutilrenderutil
|
|
xorg.xcbutilerrors
|
|
xorg.xcbutilwm # ✅ for xcb_ewmh.h
|
|
];
|
|
|
|
# The build and installation process
|
|
buildPhase = ''
|
|
make
|
|
'';
|
|
|
|
installPhase = ''
|
|
make install PREFIX=$out
|
|
'';
|
|
};
|
|
};
|
|
}
|