summaryrefslogtreecommitdiff
path: root/overlays/urxvt/default.nix
blob: 3c57d0009cb24fba40b07ea94866fce768049e8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 
    '';
  };
}