)]}'
{"tools/magrathea/default.nix":[{"author":{"_account_id":1000010,"name":"aspen","email":"root@gws.fyi","username":"aspen"},"change_message_id":"d5869fda69327b0a7cd30b26787fe41ac528fbfb","unresolved":true,"context_lines":[{"line_number":5,"context_line":""},{"line_number":6,"context_line":"pkgs.stdenv.mkDerivation {"},{"line_number":7,"context_line":"  name \u003d \"magrathea\";"},{"line_number":8,"context_line":"  src \u003d ./.;"},{"line_number":9,"context_line":"  dontInstall \u003d true;"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"  nativeBuildInputs \u003d [ pkgs.chicken ];"}],"source_content_type":"text/x-nix","patch_set":1,"id":"559692ee_5849ece5","line":8,"range":{"start_line":8,"start_character":8,"end_line":8,"end_character":12},"updated":"2021-12-15 18:38:20.000000000","message":"can this be something slightly more sensible?\n\nor maybe just stick the file in the buildPhase and dontUnpack?","commit_id":"ee51c2ba748783294672623676a1a90c58c97c4a"},{"author":{"_account_id":1000001,"name":"tazjin","email":"tazjin@tvl.su","username":"tazjin"},"change_message_id":"c82f7df0c2cdd2db0a5bae6827e3e69f50bdf4cb","unresolved":false,"context_lines":[{"line_number":5,"context_line":""},{"line_number":6,"context_line":"pkgs.stdenv.mkDerivation {"},{"line_number":7,"context_line":"  name \u003d \"magrathea\";"},{"line_number":8,"context_line":"  src \u003d ./.;"},{"line_number":9,"context_line":"  dontInstall \u003d true;"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"  nativeBuildInputs \u003d [ pkgs.chicken ];"}],"source_content_type":"text/x-nix","patch_set":1,"id":"b9e6bce6_62a69a79","line":8,"range":{"start_line":8,"start_character":8,"end_line":8,"end_character":12},"in_reply_to":"559692ee_5849ece5","updated":"2021-12-15 18:47:02.000000000","message":"Done","commit_id":"ee51c2ba748783294672623676a1a90c58c97c4a"}],"tools/magrathea/mg.scm":[{"author":{"_account_id":1000010,"name":"aspen","email":"root@gws.fyi","username":"aspen"},"change_message_id":"822932a9d0fffb6447e7e21876c66b88d1d79d3a","unresolved":true,"context_lines":[{"line_number":40,"context_line":")"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":";; Return the current repository root as a string."},{"line_number":43,"context_line":"(define repository-root"},{"line_number":44,"context_line":"  (string-chomp"},{"line_number":45,"context_line":"   (call-with-input-pipe \"git rev-parse --show-toplevel\""},{"line_number":46,"context_line":"                         (lambda (p) (read-string #f p)))))"}],"source_content_type":"text/x-scheme","patch_set":1,"id":"dcd8a9b8_96523e4f","line":43,"updated":"2021-12-15 17:29:29.000000000","message":"seems like this should be a function","commit_id":"ee51c2ba748783294672623676a1a90c58c97c4a"},{"author":{"_account_id":1000001,"name":"tazjin","email":"tazjin@tvl.su","username":"tazjin"},"change_message_id":"5ce77d87fd81a8b63eb80010fb79e7ceb944bdf8","unresolved":false,"context_lines":[{"line_number":40,"context_line":")"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":";; Return the current repository root as a string."},{"line_number":43,"context_line":"(define repository-root"},{"line_number":44,"context_line":"  (string-chomp"},{"line_number":45,"context_line":"   (call-with-input-pipe \"git rev-parse --show-toplevel\""},{"line_number":46,"context_line":"                         (lambda (p) (read-string #f p)))))"}],"source_content_type":"text/x-scheme","patch_set":1,"id":"b3d923a3_0da27ca5","line":43,"in_reply_to":"dcd8a9b8_96523e4f","updated":"2021-12-15 18:46:13.000000000","message":"Done","commit_id":"ee51c2ba748783294672623676a1a90c58c97c4a"},{"author":{"_account_id":1000034,"name":"sterni","email":"sternenseemann@systemli.org","username":"sterni"},"change_message_id":"7e9e745a1188b1b20b6883274e8f68ade448dc88","unresolved":true,"context_lines":[{"line_number":55,"context_line":";; (define (parse-target target))"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"(define (execute-build components)"},{"line_number":58,"context_line":"  (let ((attr (string-intersperse components \".\")))"},{"line_number":59,"context_line":"    (print \"[mg] building attribute \u0027\" attr \"\u0027\")"},{"line_number":60,"context_line":"    (process-execute \"nix-build\" (list \"-A\" attr \"--show-trace\" repository-root))))"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-scheme","patch_set":1,"id":"7f7cfe58_c42f3e57","line":58,"range":{"start_line":58,"start_character":34,"end_line":58,"end_character":44},"updated":"2021-12-15 18:48:28.000000000","message":"Needs to wrap components containing a `.` with quotes (e. g. gws.fyi -\u003e \"gws.fyi\").","commit_id":"ee51c2ba748783294672623676a1a90c58c97c4a"},{"author":{"_account_id":1000001,"name":"tazjin","email":"tazjin@tvl.su","username":"tazjin"},"change_message_id":"66489816363da2c01397b027311dc83a7d2d3e73","unresolved":false,"context_lines":[{"line_number":55,"context_line":";; (define (parse-target target))"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"(define (execute-build components)"},{"line_number":58,"context_line":"  (let ((attr (string-intersperse components \".\")))"},{"line_number":59,"context_line":"    (print \"[mg] building attribute \u0027\" attr \"\u0027\")"},{"line_number":60,"context_line":"    (process-execute \"nix-build\" (list \"-A\" attr \"--show-trace\" repository-root))))"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-scheme","patch_set":1,"id":"07497b39_c5ec64db","line":58,"range":{"start_line":58,"start_character":34,"end_line":58,"end_character":44},"in_reply_to":"7f7cfe58_c42f3e57","updated":"2021-12-15 22:42:50.000000000","message":"fixed by doing it like we do in CI (nesting builtins.getAttr calls, which avoids other weird issues, too)","commit_id":"ee51c2ba748783294672623676a1a90c58c97c4a"},{"author":{"_account_id":1000034,"name":"sterni","email":"sternenseemann@systemli.org","username":"sterni"},"change_message_id":"d6130bf2b23e08295cbafc3e40e6d6dbe076c938","unresolved":true,"context_lines":[{"line_number":66,"context_line":"    (match parts"},{"line_number":67,"context_line":"           [() (conc \"with builtins; \" acc)]"},{"line_number":68,"context_line":"           [_ (nix-expr-for (cdr parts)"},{"line_number":69,"context_line":"                            (conc \"(getAttr \\\"\" (car parts) \"\\\" \" acc \")\"))])))"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"(define (execute-build components)"},{"line_number":72,"context_line":"  (let ((attr (string-intersperse components \".\"))"}],"source_content_type":"text/x-scheme","patch_set":4,"id":"61f36541_65dbfd6b","line":69,"range":{"start_line":69,"start_character":53,"end_line":69,"end_character":58},"updated":"2021-12-15 22:45:59.000000000","message":"This still needs to be escaped, no? At least `\"` and `${`, the rest is kinda optional.","commit_id":"53f4faea3204a3b243e7b2b22322733d528ed630"},{"author":{"_account_id":1000001,"name":"tazjin","email":"tazjin@tvl.su","username":"tazjin"},"change_message_id":"07ef4d2cca9d8ecd2092fa8c2c1f83956e1550ec","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    (match parts"},{"line_number":67,"context_line":"           [() (conc \"with builtins; \" acc)]"},{"line_number":68,"context_line":"           [_ (nix-expr-for (cdr parts)"},{"line_number":69,"context_line":"                            (conc \"(getAttr \\\"\" (car parts) \"\\\" \" acc \")\"))])))"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"(define (execute-build components)"},{"line_number":72,"context_line":"  (let ((attr (string-intersperse components \".\"))"}],"source_content_type":"text/x-scheme","patch_set":4,"id":"e4f8c307_bfbba29a","line":69,"range":{"start_line":69,"start_character":53,"end_line":69,"end_character":58},"in_reply_to":"61f36541_65dbfd6b","updated":"2021-12-17 14:33:21.000000000","message":"Done","commit_id":"53f4faea3204a3b243e7b2b22322733d528ed630"}]}
