nixpkgs.config.packageOverrides = super: { sudo = (super.sudo.override({ withInsults = true; })).overrideAttrs( oldAttrs: { configureFlags = oldAttrs.configureFlags ++ [ "--with-sssd" "--with-sssd-lib=${super.sssd}/lib" ]; } ); sssd = super.sssd.overrideAttrs( oldAttrs: { preConfigure = oldAttrs.preConfigure + configureFlagsArray+=("--with-sudo"); ; } ); };