aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-07-31 14:18:31 -0700
committerJade Lovelace <lix@jade.fyi>2024-07-31 23:23:42 -0700
commite6fc3e9227f6100800a64f93d87f03029e131db8 (patch)
tree46b4c524a3839967930d3756bceb7ae28a813615
parenta3ab2cc78a736109435f3cc8e1364fcc366c6c97 (diff)
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
-rw-r--r--flake.nix2
1 files changed, 1 insertions, 1 deletions
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" ''