summary refs log tree commit diff
path: root/pkgs/applications/misc/termite/wrapper.nix
blob: 0b12a905360c9ab1156423d3278afee9e737fc6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{  makeWrapper, wrapGAppsHook, symlinkJoin, configFile ? null, termite }:

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;
}