2023-06-15 11:33:59 +03:00
|
|
|
{ themeCfg, pkgs }:
|
|
|
|
let
|
|
|
|
external_ip_unwrapped = pkgs.writeShellScriptBin "external_ip"
|
|
|
|
(builtins.readFile (pkgs.substituteAll ({ src = ./external_ip.sh; } // themeCfg.highlights)));
|
|
|
|
in
|
|
|
|
pkgs.symlinkJoin {
|
|
|
|
name = "external_ip";
|
|
|
|
|
|
|
|
paths = [ external_ip_unwrapped ] ++ (with pkgs; [ bind.dnsutils ]);
|
|
|
|
buildInputs = [ pkgs.makeWrapper ];
|
|
|
|
|
|
|
|
postBuild = ''
|
2023-06-16 11:03:56 +03:00
|
|
|
wrapProgram $out/bin/external_ip --prefix PATH : $out/bin
|
2023-06-15 11:33:59 +03:00
|
|
|
'';
|
|
|
|
}
|