2019-06-16 20:59:06 +01:00
|
|
|
{ makeWrapper, symlinkJoin, configFile ? null, termite }:
|
2018-08-01 15:09:55 +01: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;
|
|
|
|
}
|