For fun, I recreated a subset of Flutter that is sufficient to build a tiny Minesweeper application for the terminal.
Here is how it looks:
+----------------------+
|Minesweeper 3/12|
| |
| nix-env --uninstall '*' | |
| nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A uninstaller | |
| ./result/bin/darwin-uninstaller | |
| sudo launchctl unload /Library/LaunchDaemon/org.nixos.nix-daemon.plist | |
| sudo rm /Library/LaunchDaemons/org.nixos.nix-daemon.plist | |
| sudo launchctl unload /Library/LaunchDaemons/org.nixos.activate-system.plist | |
| sudo rm /Library/LaunchDaemons/org.nixos.activate-system.plist | |
| sudo rm -rf /etc/nix /var/root/.nix-profile /var/root/.nix-defexpr /var/root/.nix-channels ~/.nix-profile ~/.nix-defexpr ~/.nix-channels |
| {-# LANGUAGE TypeSynonymInstances #-} | |
| data Dual d = D Float d deriving Show | |
| type Float' = Float | |
| diff :: (Dual Float' -> Dual Float') -> Float -> Float' | |
| diff f x = y' | |
| where D y y' = f (D x 1) | |
| class VectorSpace v where | |
| zero :: v |
| nix-env --uninstall '*' | |
| nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A uninstaller | |
| ./result/bin/darwin-uninstaller | |
| sudo launchctl unload /Library/LaunchDaemon/org.nixos.nix-daemon.plist | |
| sudo rm /Library/LaunchDaemons/org.nixos.nix-daemon.plist | |
| sudo launchctl unload /Library/LaunchDaemons/org.nixos.activate-system.plist | |
| sudo rm /Library/LaunchDaemons/org.nixos.activate-system.plist | |
| sudo rm -rf /etc/nix /var/root/.nix-profile /var/root/.nix-defexpr /var/root/.nix-channels ~/.nix-profile ~/.nix-defexpr ~/.nix-channels |
If you want to see how it works, see the README on the repo.
| [02/25/2025] | |
| Refs: | |
| 1. http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz | |
| 2. https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/aarch64/alpine-virt-3.21.3-aarch64.iso | |
| 3. https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux_with_Alpine_remotely | |
| 4. https://wiki.archlinux.org/index.php/installation_guide#Configure_the_system | |
| 5. https://archlinuxarm.org/platforms/armv8/generic | |
| See also: |
| [02/22/2025] | |
| Refs: | |
| 1. https://mirrors.rit.edu/archlinux/iso/2025.02.01/archlinux-bootstrap-2025.02.01-x86_64.tar.zst | |
| 2. https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/x86_64/alpine-virt-3.21.3-x86_64.iso | |
| 3. https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux_with_Alpine_remotely | |
| 4. https://wiki.archlinux.org/index.php/installation_guide#Configure_the_system | |
| See also: | |
| 1. Convert to Debian https://gist.github.com/zengxinhui/ee0ad6b7c7f99e2ead6cd0d2bd6641fd |