mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
23 lines
538 B
Nix
23 lines
538 B
Nix
{ stdenv, symlinkJoin, rxvt_unicode, makeWrapper, plugins }:
|
|
|
|
let
|
|
rxvt = rxvt_unicode.override {
|
|
perlSupport = true;
|
|
};
|
|
rxvt_name = builtins.parseDrvName rxvt.name;
|
|
|
|
in symlinkJoin {
|
|
name = "${rxvt_name.name}-with-plugins-${rxvt_name.version}";
|
|
|
|
paths = [ rxvt ] ++ plugins;
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/urxvt \
|
|
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
|
|
wrapProgram $out/bin/urxvtd \
|
|
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
|
|
'';
|
|
}
|