mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-24 05:23:54 +01:00
19 lines
340 B
Nix
19 lines
340 B
Nix
{
|
|
pkgs,
|
|
patches,
|
|
dwl-source,
|
|
cmd,
|
|
...
|
|
}:
|
|
pkgs.dwl.overrideAttrs
|
|
(finalAttrs: previousAttrs: {
|
|
src = dwl-source;
|
|
inherit patches;
|
|
postPatch = let
|
|
configFile = ../config-files/dwl/dwl-config.h;
|
|
in ''
|
|
cp ${configFile} config.def.h
|
|
substituteInPlace ./config.def.h --replace "@TERMINAL" "${cmd.terminal}"
|
|
'';
|
|
})
|