8418e01a84
This small tool prints the current time rounded to half-hour precision as an emoji clock face and exists. It can use both the local time zone and UTC. Additionally it supports a pseudo dot time format. Via fun.🕰️.lib we reexpose the internal library which allows conversion from LOCAL-TIME:TIMESTAMP to an emoji clock face — maybe we'll want to integrate this into //web/panettone? //fun/🕰️ is the spritual (and actual) successor to <https://github.com/sternenseemann/unicode_clock>. It likely only works in SBCL due to its heavy usage of unicode symbol names. Change-Id: I44204107a14f99b04b0c5290d88e8659f013f423 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3164 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
36 lines
501 B
Nix
36 lines
501 B
Nix
{ depot, ... }:
|
||
|
||
let
|
||
inherit (depot.nix)
|
||
buildLisp
|
||
;
|
||
|
||
lib = buildLisp.library {
|
||
name = "lib🕰️";
|
||
deps = [
|
||
depot.third_party.lisp.local-time
|
||
];
|
||
|
||
srcs = [
|
||
./lib.lisp
|
||
];
|
||
};
|
||
|
||
bin = buildLisp.program {
|
||
name = "🕰️";
|
||
deps = [
|
||
depot.third_party.lisp.unix-opts
|
||
depot.lisp.klatre
|
||
(buildLisp.bundled "uiop")
|
||
lib
|
||
];
|
||
|
||
srcs = [
|
||
./bin.lisp
|
||
];
|
||
|
||
main = "🕰️.bin:🚂";
|
||
};
|
||
in bin // {
|
||
inherit lib;
|
||
}
|