nandi/freeqsay-nimpublic Fork 0
main
Commits
Clone
git clone https://git.rickub.com/nandi/freeqsay-nim.git
git clone ssh://git@rickub.com/nandi/freeqsay-nim.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

justfile · 32 lines · 1.1 KBMakefile Blame HistoryRaw
freeqsay: Nim port of the Clojure implementation fa53aa2 nandi 4h ago1# freeqsay recipes. Everything here assumes nim on PATH.
2
3# Show the recipes.
4default:
5 @just --list
6
7# Compile the standalone binary (optimized).
8build:
9 nim c -d:release -d:ssl --hints:off -o:freeqsay src/freeqsay.nim
10
just static: fully static builds through a pinned nimstatic 078b24d nandi 1h ago11# Fully static binary → ./freeqsay-static. No glibc, no dlopen'd OpenSSL, so it
12# runs on any Linux. tools/nimstatic is a DotSlash file: the first run fetches
13# the pinned nimstatic build, verifies its hash and caches it.
14static:
15 ./tools/nimstatic src/freeqsay.nim -o freeqsay-static -- -d:ssl
16
freeqsay: Nim port of the Clojure implementation fa53aa2 nandi 4h ago17# Run the test suite.
18test:
19 nim c -d:ssl --hints:off -r tests/test_avatar.nim
20
21# Run from source, without an optimized build: `just run jay.bsky.team hello`.
22run *args:
23 nim r -d:ssl --hints:off src/freeqsay.nim {{args}}
24
25# Screenshot the output, gapless (termshot-tight sets lineSpacing 1.0):
26# `just shot jay.bsky.team hello`. Writes freeqsay.png.
27shot *args:
28 termshot -c -C 80 -f freeqsay.png -- nim r -d:ssl --hints:off src/freeqsay.nim {{args}}
29
30# Remove build output and caches.
31clean:
32 rm -rf freeqsay tests/test_avatar nimcache tests/nimcache