From d9cc8dd22751505feef3dde452e125ef593cda75 Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 6 May 2025 02:23:51 +0300 Subject: [PATCH] use writeshellapplication --- modules/services/wanikani-bypass-lessons.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/services/wanikani-bypass-lessons.nix b/modules/services/wanikani-bypass-lessons.nix index 2c32ed6..ebccb56 100644 --- a/modules/services/wanikani-bypass-lessons.nix +++ b/modules/services/wanikani-bypass-lessons.nix @@ -1,6 +1,10 @@ {lib, config, pkgs, ...}: let - waniKani-bypass-lessons = pkgs.writeShellScript "wanikani-bypass-lessons" '' + waniKani-bypass-lessons = pkgs.writeShellApplication{ + + name = "wanikani-bypass-lessons"; + runtimeInputs = with pkgs; [ curl jq ]; + text = '' #!/usr/bin/env bash # this token that starts with "2da24" is read only so i am keeping it public, i have nothing secret on my wanikani account @@ -24,6 +28,7 @@ sleep 1 done ''; + }; in {