{ final, prev, ... }: { uucp = prev.uucp.overrideAttrs (oldAttrs: { configureFlags = (oldAttrs.configureFlags or []) ++ ["--with-newconfigdir=/etc/uucp"]; patches = (oldAttrs.patches or []) ++ [ ./mailprogram.patch ]; NIX_CFLAGS_COMPILE = "${oldAttrs.NIX_CFLAGS_COMPILE or ""} -Wno-error=incompatible-pointer-types"; }); }