{ pkgs, shell-library, ... }: #pkgs.writeShellScriptBin "install" (builtins.readFile ./install) let dependencies = with pkgs; [jq dash]; name = "install"; in pkgs.runCommandLocal name { nativeBuildInputs = [pkgs.makeWrapper] ++ dependencies; } '' install -m755 ${./install} -D "$out/bin/${name}" sed -i 's|%SHELL_LIBRARY_PATH|${shell-library}|' "$out/bin/${name}" #patchShebangs "$out/bin/${name}" wrapProgram "$out/bin/${name}" --prefix PATH : ${pkgs.lib.makeBinPath dependencies} ''