Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 makeWrapper, 3 symlinkJoin, 4 configFile ? null, 5 termite, 6}: 7 8if configFile == null then 9 termite 10else 11 symlinkJoin { 12 name = "termite-with-config-${termite.version}"; 13 14 paths = [ termite ]; 15 nativeBuildInputs = [ makeWrapper ]; 16 17 postBuild = '' 18 wrapProgram $out/bin/termite \ 19 --add-flags "--config ${configFile}" 20 ''; 21 22 passthru.terminfo = termite.terminfo; 23 }