2023-06-15 11:33:59 +03:00
|
|
|
{ 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
|
2023-06-15 11:33:59 +03:00
|
|
|
'';
|
|
|
|
}
|