dwl/flake.nix
2025-07-29 19:19:19 -04:00

45 lines
918 B
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
];
# Add the necessary build dependencies for dwl
buildInputs = with pkgs; [
xwayland
libxkbcommon
wayland-protocols
wlroots
xorg.libxcb
];
# The build and installation process
buildPhase = ''
make
'';
installPhase = ''
make install PREFIX=$out
'';
};
};
}