final: prev: { rxvt_unicode-with-plugins = prev.rxvt-unicode.override { configure = { availablePlugins, ... }: { plugins = [ final.urxvt_osc_52 ] ++ builtins.attrValues availablePlugins; }; }; urxvt_osc_52 = prev.stdenv.mkDerivation { name = "rxvt_unicode-osc_52-0"; src = ./52-osc.pl; unpackPhase = '' cp $src 52-osc ''; buildPhase = '' sed -i 's|#! perl|#! ${final.perl}/bin/perl|g' 52-osc ''; installPhase = '' mkdir -p $out/lib/urxvt/perl cp 52-osc $out/lib/urxvt/perl ''; }; }