silly little doodles
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add flake.nix | add justfile

nnuuvv 5b72c9da 7417e636

+111 -2
+61
flake.lock
··· 1 + { 2 + "nodes": { 3 + "nixpkgs": { 4 + "locked": { 5 + "lastModified": 1769461804, 6 + "narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=", 7 + "owner": "NixOS", 8 + "repo": "nixpkgs", 9 + "rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d", 10 + "type": "github" 11 + }, 12 + "original": { 13 + "owner": "NixOS", 14 + "ref": "nixos-unstable", 15 + "repo": "nixpkgs", 16 + "type": "github" 17 + } 18 + }, 19 + "root": { 20 + "inputs": { 21 + "nixpkgs": "nixpkgs", 22 + "utils": "utils" 23 + } 24 + }, 25 + "systems": { 26 + "locked": { 27 + "lastModified": 1681028828, 28 + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 29 + "owner": "nix-systems", 30 + "repo": "default", 31 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 32 + "type": "github" 33 + }, 34 + "original": { 35 + "owner": "nix-systems", 36 + "repo": "default", 37 + "type": "github" 38 + } 39 + }, 40 + "utils": { 41 + "inputs": { 42 + "systems": "systems" 43 + }, 44 + "locked": { 45 + "lastModified": 1731533236, 46 + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 47 + "owner": "numtide", 48 + "repo": "flake-utils", 49 + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 50 + "type": "github" 51 + }, 52 + "original": { 53 + "owner": "numtide", 54 + "repo": "flake-utils", 55 + "type": "github" 56 + } 57 + } 58 + }, 59 + "root": "root", 60 + "version": 7 61 + }
+32
flake.nix
··· 1 + { 2 + description = "doodler dev env"; 3 + 4 + inputs = { 5 + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 + utils.url = "github:numtide/flake-utils"; 7 + }; 8 + 9 + outputs = { self, nixpkgs, utils }: 10 + utils.lib.eachDefaultSystem (system: 11 + let 12 + pkgs = import nixpkgs { inherit system; }; 13 + in 14 + { 15 + devShells.default = pkgs.mkShell { 16 + buildInputs = with pkgs; [ 17 + gleam 18 + erlang_27 19 + rebar3 20 + bun 21 + just 22 + ]; 23 + 24 + shellHook = '' 25 + echo "doodler dev env loaded" 26 + just --list 27 + echo "Use just to run them." 28 + ''; 29 + }; 30 + }); 31 + } 32 +
+17
justfile
··· 1 + default: 2 + @just --list 3 + 4 + # Build the SPA 5 + build: 6 + gleam run -m lustre/dev build 7 + 8 + # Run a dev server using lustre/dev start 9 + dev: 10 + gleam run -m lustre/dev start 11 + 12 + # Deploy doodler to my server 13 + deploy: build 14 + ssh deploy-doodler@gitlab rm /srv/doodler/* 15 + scp ./dist/* deploy-doodler@gitlab:/srv/doodler 16 + 17 +
+1 -2
src/doodler.gleam
··· 47 47 48 48 type Msg { 49 49 UserClickedPoint(Point) 50 - // TODO: implement mirror toggle 51 - // For horizontal / vertical mirroring 50 + // TODO: add button to toggle 52 51 UserClickedToggleMirror 53 52 // TODO: implement 'shape verification mode' toggle 54 53 }