From e6fc3e9227f6100800a64f93d87f03029e131db8 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Wed, 31 Jul 2024 14:18:31 -0700 Subject: flake: remove control character from file by using fromJSON I was reminded by various evil things puck did to the evaluator involving null bytes that you can get funny bytes by abusing JSON parsing. It's neater than putting binary in the source file, so let's do it. Change-Id: I1ff2e0d829eb303fbed81fa2ebb3a39412e89ff1 --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index d2173cf47..a1fc947b7 100644 --- a/flake.nix +++ b/flake.nix @@ -33,7 +33,7 @@ # This notice gets echoed as a dev shell hook, and can be turned off with # `touch .nocontribmsg` - sgr = ''[''; + sgr = builtins.fromJSON ''"\u001b["''; freezePage = "https://wiki.lix.systems/books/lix-contributors/page/freezes-and-recommended-contributions"; codebaseOverview = "https://wiki.lix.systems/books/lix-contributors/page/codebase-overview"; contribNotice = builtins.toFile "lix-contrib-notice" '' -- cgit v1.2.3