system/home/modules/window_manager/scripts/exchangerate.nix

18 lines
456 B
Nix
Raw Normal View History

{ themeCfg, pkgs }:
let
exchangerate_unwrapped = pkgs.writeShellScriptBin "exchangerate"
(builtins.readFile (pkgs.substituteAll ({ src = ./exchangerate.sh; } // themeCfg.highlights)));
in
pkgs.symlinkJoin {
name = "exchangerate";
paths = [ exchangerate_unwrapped ] ++ (with pkgs; [ curl gnugrep gnused coreutils ]);
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
2023-06-16 11:03:56 +03:00
wrapProgram $out/bin/exchangerate --prefix PATH : $out/bin
'';
}