system/modules/home-manager/configs/window-manager/scripts/external_ip.nix

16 lines
432 B
Nix
Raw Normal View History

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