use writeshellapplication
This commit is contained in:
parent
540dbd25d5
commit
d9cc8dd227
1 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
{lib, config, pkgs, ...}: let
|
{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
|
#!/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
|
# 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
|
sleep 1
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue