diff options
| -rw-r--r-- | .envrc | 1 | ||||
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | .local.lua | 13 | ||||
| -rw-r--r-- | flake.lock | 27 | ||||
| -rw-r--r-- | flake.nix | 14 | ||||
| -rw-r--r-- | main.ua | 5 |
6 files changed, 61 insertions, 0 deletions
@@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea1472e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +output/ diff --git a/.local.lua b/.local.lua new file mode 100644 index 0000000..3835641 --- /dev/null +++ b/.local.lua @@ -0,0 +1,13 @@ +-- My repl config: https://github.com/phenax/neovim-config/blob/main/lua/phenax/repl.lua +--- @type table +Repl = Repl + +Repl.replModes.uiua = { + config = { + command = 'uiua repl', + clear_screen = false, + width = function(w) return w * 0.4 end, + } +} + +Repl.apply_repl_mode('uiua') diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..34d3333 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1739020877, + "narHash": "sha256-mIvECo/NNdJJ/bXjNqIh8yeoSjVLAuDuTUzAo7dzs8Y=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "a79cfe0ebd24952b580b1cf08cd906354996d547", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..151edd3 --- /dev/null +++ b/flake.nix @@ -0,0 +1,14 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = { self, nixpkgs }: + let + pkgs = import nixpkgs { system = "x86_64-linux"; }; + in { + devShells.x86_64-linux.default = pkgs.mkShell { + buildInputs = [pkgs.uiua]; + }; + }; +} @@ -0,0 +1,5 @@ +ImgW ← &fwa "./output/mandelbrot.png" img "png" + +Imgdata ← ⍉⊞<⊞+⇡3∿∩(÷25)⇡240⇡80 + +ImgW Imgdata |
