add gum-wrapper

get it?
This commit is contained in:
mehbark 2023-12-24 13:52:05 -05:00
parent 86806ff5a0
commit 3adeee7333

View file

@ -21,6 +21,16 @@
${./skins/classic.bmp} \ ${./skins/classic.bmp} \
$@ $@
''; '';
# get it? GET IT?
gum-wrapper = pkgs.writeShellScriptBin "mineschemer-gum-wrapper" ''
LD_LIBRARY_PATH="${pkgs.raylib}/lib" \
${pkgs.chez}/bin/scheme \
--script ${./main.scm} \
${./skins/classic.bmp} \
$(${pkgs.gum}/bin/gum input --prompt="mines: " --placeholder="must be a natural number") \
$(${pkgs.gum}/bin/gum input --prompt="width: " --placeholder="must be a natural number") \
$(${pkgs.gum}/bin/gum input --prompt="height: " --placeholder="must be a natural number")
'';
}); });
devShells = forEachSupportedSystem ({ pkgs }: { devShells = forEachSupportedSystem ({ pkgs }: {