mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 09:31:01 +00:00
e68878a728
Because we hardcode a list of useful plugins, it may be useful for someone who's overriding this. See https://github.com/NixOS/nixpkgs/issues/15743#issuecomment-222112433
22 lines
523 B
Nix
22 lines
523 B
Nix
{ stdenv, symlinkJoin, rxvt_unicode, makeWrapper, plugins }:
|
|
|
|
let
|
|
rxvt_name = builtins.parseDrvName rxvt_unicode.name;
|
|
|
|
in symlinkJoin {
|
|
name = "${rxvt_name.name}-with-plugins-${rxvt_name.version}";
|
|
|
|
paths = [ rxvt_unicode ] ++ 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"
|
|
'';
|
|
|
|
passthru.plugins = plugins;
|
|
}
|