)]}'
{"users/sterni/htmlman/default.nix":[{"author":{"_account_id":1000013,"name":"Profpatsch","email":"mail@profpatsch.de","username":"Profpatsch"},"change_message_id":"4a1b458fd43294ad923a4a9359d06d04ef85a848","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"  bins \u003d (getBins lowdown [ \"lowdown\" ])"},{"line_number":17,"context_line":"      // (getBins mandoc [ \"mandoc\" ])"},{"line_number":18,"context_line":"      // (getBins coreutils [ \"cat\" \"mv\" \"mkdir\" ])"},{"line_number":19,"context_line":"      ;"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"  normalizeDrv \u003d fetchurl {"}],"source_content_type":"text/x-nix","patch_set":3,"id":"9383754a_2c8873a6","line":18,"updated":"2021-03-10 16:01:26.000000000","message":"in theory you can remove the `()` here but maybe you put them for clarity (then nvm)","commit_id":"a5191de7fbc7fa42190e483ef152601085d0f0a5"},{"author":{"_account_id":1000034,"name":"sterni","email":"sternenseemann@systemli.org","username":"sterni"},"change_message_id":"51fd262e0dd63e49648b1d105fc811ecc1f4e9db","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"  bins \u003d (getBins lowdown [ \"lowdown\" ])"},{"line_number":17,"context_line":"      // (getBins mandoc [ \"mandoc\" ])"},{"line_number":18,"context_line":"      // (getBins coreutils [ \"cat\" \"mv\" \"mkdir\" ])"},{"line_number":19,"context_line":"      ;"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"  normalizeDrv \u003d fetchurl {"}],"source_content_type":"text/x-nix","patch_set":3,"id":"daf84b5a_f5fc2b86","line":18,"in_reply_to":"9383754a_2c8873a6","updated":"2021-03-10 16:22:45.000000000","message":"Didn\u0027t know that thx.","commit_id":"a5191de7fbc7fa42190e483ef152601085d0f0a5"},{"author":{"_account_id":1000013,"name":"Profpatsch","email":"mail@profpatsch.de","username":"Profpatsch"},"change_message_id":"4a1b458fd43294ad923a4a9359d06d04ef85a848","unresolved":false,"context_lines":[{"line_number":29,"context_line":"  # I will not write a pure nix markdown renderer"},{"line_number":30,"context_line":"  # I will not write a pure nix markdown renderer"},{"line_number":31,"context_line":"  # I will not write a pure nix markdown renderer"},{"line_number":32,"context_line":"  # I will not write a pure nix markdown renderer"},{"line_number":33,"context_line":"  markdown \u003d md:"},{"line_number":34,"context_line":"    let"},{"line_number":35,"context_line":"      html \u003d runExecline.local \"rendered-markdown\" {"}],"source_content_type":"text/x-nix","patch_set":3,"id":"59d4e6f7_61fdd619","line":32,"updated":"2021-03-10 16:01:26.000000000","message":"toplel","commit_id":"a5191de7fbc7fa42190e483ef152601085d0f0a5"},{"author":{"_account_id":1000013,"name":"Profpatsch","email":"mail@profpatsch.de","username":"Profpatsch"},"change_message_id":"4a1b458fd43294ad923a4a9359d06d04ef85a848","unresolved":true,"context_lines":[{"line_number":32,"context_line":"  # I will not write a pure nix markdown renderer"},{"line_number":33,"context_line":"  markdown \u003d md:"},{"line_number":34,"context_line":"    let"},{"line_number":35,"context_line":"      html \u003d runExecline.local \"rendered-markdown\" {"},{"line_number":36,"context_line":"        stdin \u003d md;"},{"line_number":37,"context_line":"      } ["},{"line_number":38,"context_line":"        \"importas\" \"-i\" \"out\" \"out\""},{"line_number":39,"context_line":"        \"redirfd\" \"-w\" stdout \"$out\""},{"line_number":40,"context_line":"        bins.lowdown \"-T\" \"html\""},{"line_number":41,"context_line":"      ];"},{"line_number":42,"context_line":"    in builtins.readFile html;"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"  indexTemplate \u003d { title, description, pages ? [] }: \u0027\u0027"},{"line_number":45,"context_line":"    \u003c!doctype html\u003e"}],"source_content_type":"text/x-nix","patch_set":3,"id":"6063b151_afb959c7","line":42,"range":{"start_line":35,"start_character":1,"end_line":42,"end_character":30},"updated":"2021-03-10 16:01:26.000000000","message":"I had this as something like\n\n```\n  runExeclineStdout \u003d name: args: cmd: depot.nix.runExecline name args ([\n    \"importas\" \"-ui\" \"out\" \"out\"\n    \"redirfd\" \"-w\" \"1\" \"$out\"\n  ] ++ cmd);\n```\n\ndunno how well it composes though","commit_id":"a5191de7fbc7fa42190e483ef152601085d0f0a5"},{"author":{"_account_id":1000034,"name":"sterni","email":"sternenseemann@systemli.org","username":"sterni"},"change_message_id":"51fd262e0dd63e49648b1d105fc811ecc1f4e9db","unresolved":false,"context_lines":[{"line_number":32,"context_line":"  # I will not write a pure nix markdown renderer"},{"line_number":33,"context_line":"  markdown \u003d md:"},{"line_number":34,"context_line":"    let"},{"line_number":35,"context_line":"      html \u003d runExecline.local \"rendered-markdown\" {"},{"line_number":36,"context_line":"        stdin \u003d md;"},{"line_number":37,"context_line":"      } ["},{"line_number":38,"context_line":"        \"importas\" \"-i\" \"out\" \"out\""},{"line_number":39,"context_line":"        \"redirfd\" \"-w\" stdout \"$out\""},{"line_number":40,"context_line":"        bins.lowdown \"-T\" \"html\""},{"line_number":41,"context_line":"      ];"},{"line_number":42,"context_line":"    in builtins.readFile html;"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"  indexTemplate \u003d { title, description, pages ? [] }: \u0027\u0027"},{"line_number":45,"context_line":"    \u003c!doctype html\u003e"}],"source_content_type":"text/x-nix","patch_set":3,"id":"f24273ee_a62e16bc","line":42,"range":{"start_line":35,"start_character":1,"end_line":42,"end_character":30},"in_reply_to":"6063b151_afb959c7","updated":"2021-03-10 16:22:45.000000000","message":"I can just have a `execlineStdoutInto` function which returns a execline block as nix representation for my case.","commit_id":"a5191de7fbc7fa42190e483ef152601085d0f0a5"},{"author":{"_account_id":1000013,"name":"Profpatsch","email":"mail@profpatsch.de","username":"Profpatsch"},"change_message_id":"4a1b458fd43294ad923a4a9359d06d04ef85a848","unresolved":true,"context_lines":[{"line_number":105,"context_line":"          passAsFile \u003d [ \"index\" \"style\" ];"},{"line_number":106,"context_line":"        };"},{"line_number":107,"context_line":"      } (["},{"line_number":108,"context_line":"        \"importas\" \"-i\" \"out\" \"out\""},{"line_number":109,"context_line":"        \"if\" [ bins.mkdir \"-p\" \"$out\" ]"},{"line_number":110,"context_line":"        \"importas\" \"-i\" \"index\" \"indexPath\""},{"line_number":111,"context_line":"        \"if\" [ bins.mv \"$index\" \"\\${out}/index.html\" ]"},{"line_number":112,"context_line":"        \"importas\" \"-i\" \"style\" \"stylePath\""},{"line_number":113,"context_line":"        \"if\" ["},{"line_number":114,"context_line":"          \"redirfd\" \"-w\" stdout \"\\${out}/style.css\""},{"line_number":115,"context_line":"          \"if\" (["},{"line_number":116,"context_line":"            bins.cat"}],"source_content_type":"text/x-nix","patch_set":3,"id":"7bc215ed_16f5d09f","line":113,"range":{"start_line":108,"start_character":1,"end_line":113,"end_character":14},"updated":"2021-03-10 16:01:26.000000000","message":"you can use https://skarnet.org/software/execline/multisubstitute.html here, to importas multiple things at the same time.\n\nmaybe also -u to pop the envvar at the same time.\n\nNewer execline added -E to nearly every command which introduces an envvar, so you don’t have to put an importas immediately after (ofc this doesn’t apply here because the variables are set by the nix builder).","commit_id":"a5191de7fbc7fa42190e483ef152601085d0f0a5"},{"author":{"_account_id":1000034,"name":"sterni","email":"sternenseemann@systemli.org","username":"sterni"},"change_message_id":"51fd262e0dd63e49648b1d105fc811ecc1f4e9db","unresolved":false,"context_lines":[{"line_number":105,"context_line":"          passAsFile \u003d [ \"index\" \"style\" ];"},{"line_number":106,"context_line":"        };"},{"line_number":107,"context_line":"      } (["},{"line_number":108,"context_line":"        \"importas\" \"-i\" \"out\" \"out\""},{"line_number":109,"context_line":"        \"if\" [ bins.mkdir \"-p\" \"$out\" ]"},{"line_number":110,"context_line":"        \"importas\" \"-i\" \"index\" \"indexPath\""},{"line_number":111,"context_line":"        \"if\" [ bins.mv \"$index\" \"\\${out}/index.html\" ]"},{"line_number":112,"context_line":"        \"importas\" \"-i\" \"style\" \"stylePath\""},{"line_number":113,"context_line":"        \"if\" ["},{"line_number":114,"context_line":"          \"redirfd\" \"-w\" stdout \"\\${out}/style.css\""},{"line_number":115,"context_line":"          \"if\" (["},{"line_number":116,"context_line":"            bins.cat"}],"source_content_type":"text/x-nix","patch_set":3,"id":"131266e0_b188781f","line":113,"range":{"start_line":108,"start_character":1,"end_line":113,"end_character":14},"in_reply_to":"7bc215ed_16f5d09f","updated":"2021-03-10 16:22:45.000000000","message":"Done","commit_id":"a5191de7fbc7fa42190e483ef152601085d0f0a5"},{"author":{"_account_id":1000013,"name":"Profpatsch","email":"mail@profpatsch.de","username":"Profpatsch"},"change_message_id":"4a1b458fd43294ad923a4a9359d06d04ef85a848","unresolved":true,"context_lines":[{"line_number":113,"context_line":"        \"if\" ["},{"line_number":114,"context_line":"          \"redirfd\" \"-w\" stdout \"\\${out}/style.css\""},{"line_number":115,"context_line":"          \"if\" (["},{"line_number":116,"context_line":"            bins.cat"},{"line_number":117,"context_line":"          ] ++ lib.optional normalizeCss normalizeDrv"},{"line_number":118,"context_line":"            ++ ["},{"line_number":119,"context_line":"            \"$style\""}],"source_content_type":"text/x-nix","patch_set":3,"id":"cc039bdf_021d0f8a","line":116,"updated":"2021-03-10 16:01:26.000000000","message":"why the cat here? It’s a noop right? In case there is no $style?","commit_id":"a5191de7fbc7fa42190e483ef152601085d0f0a5"},{"author":{"_account_id":1000034,"name":"sterni","email":"sternenseemann@systemli.org","username":"sterni"},"change_message_id":"51fd262e0dd63e49648b1d105fc811ecc1f4e9db","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        \"if\" ["},{"line_number":114,"context_line":"          \"redirfd\" \"-w\" stdout \"\\${out}/style.css\""},{"line_number":115,"context_line":"          \"if\" (["},{"line_number":116,"context_line":"            bins.cat"},{"line_number":117,"context_line":"          ] ++ lib.optional normalizeCss normalizeDrv"},{"line_number":118,"context_line":"            ++ ["},{"line_number":119,"context_line":"            \"$style\""}],"source_content_type":"text/x-nix","patch_set":3,"id":"40265d51_a041123c","line":116,"in_reply_to":"cc039bdf_021d0f8a","updated":"2021-03-10 16:22:45.000000000","message":"In case `normalizeCss \u003d true`, it will `cat /nix/store/…normalize.css style.css`","commit_id":"a5191de7fbc7fa42190e483ef152601085d0f0a5"}]}
