Working on dwlb
This commit is contained in:
15
flake.nix
15
flake.nix
@@ -46,12 +46,17 @@
|
||||
});
|
||||
})
|
||||
(final: prev: {
|
||||
dwl = prev.dwl.overrideAttrs {
|
||||
dwl = prev.dwl.overrideAttrs (old: {
|
||||
src = ./modules/dwl/source;
|
||||
patches = [
|
||||
./modules/dwl/patches/focusdir.patch
|
||||
];
|
||||
};
|
||||
# Force rebuild when config.def.h changes by including its content
|
||||
configContent = builtins.readFile ./modules/dwl/source/config.def.h;
|
||||
postPatch = ''
|
||||
# Copy the current config.def.h to config.h
|
||||
cp config.def.h config.h
|
||||
'';
|
||||
buildInputs = old.buildInputs or[] ++ [ final.wlroots ];
|
||||
nativeBuildInputs = old.nativeBuildInputs or[] ++ [ final.pkg-config final.wayland-scanner final.wayland-protocols ];
|
||||
});
|
||||
})
|
||||
];
|
||||
in {
|
||||
|
||||
Reference in New Issue
Block a user