2019-06-16 21:59:06 +02:00
|
|
|
{ makeWrapper, symlinkJoin, configFile ? null, termite }:
|
2018-08-01 16:09:55 +02:00
|
|
|
|
|
|
|
if configFile == null then termite else symlinkJoin {
|
|
|
|
name = "termite-with-config-${termite.version}";
|
|
|
|
|
|
|
|
paths = [ termite ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/termite \
|
|
|
|
--add-flags "--config ${configFile}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.terminfo = termite.terminfo;
|
|
|
|
}
|