dwl/flake.nix

29 lines
771 B
Nix
Raw Permalink Normal View History

2024-12-12 23:42:46 +00:00
{
description = "dwm for Wayland (requires dwl 0.7)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ flake-parts, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
2024-12-13 12:57:04 +00:00
imports = [
flake-parts.flakeModules.easyOverlay
];
2024-12-12 23:42:46 +00:00
systems = nixpkgs.lib.platforms.unix;
perSystem = { config, self', inputs', pkgs, system, ... }: {
2024-12-13 12:57:04 +00:00
overlayAttrs = {
zdwl = config.packages.default;
};
2024-12-13 13:04:43 +00:00
packages.default = pkgs.dwl.overrideAttrs (old: {
2024-12-13 13:34:06 +00:00
buildInputs = old.buildInputs ++ (with pkgs; [
fcft
libdrm.dev
]);
2024-12-12 23:42:46 +00:00
src = ./.;
2024-12-13 12:52:10 +00:00
});
2024-12-12 23:42:46 +00:00
};
};
}