flow-control: 0.3.2 -> 0.4.0

Changelog: https://github.com/neurocyte/flow/releases/tag/v0.4.0
Diff: https://github.com/neurocyte/flow/compare/v0.3.2...v0.4.0

DoM 61828ef2 3d80e194

+94 -75
+86 -68
pkgs/by-name/fl/flow-control/build.zig.zon.nix
··· 16 let 17 unpackZigArtifact = 18 { name, artifact }: 19 - runCommandLocal name 20 - { 21 - nativeBuildInputs = [ zig ]; 22 - } 23 - '' 24 - hash="$(zig fetch --global-cache-dir "$TMPDIR" ${artifact})" 25 - mv "$TMPDIR/p/$hash" "$out" 26 - chmod 755 "$out" 27 - ''; 28 29 fetchZig = 30 { ··· 42 name, 43 url, 44 hash, 45 }: 46 let 47 parts = splitString "#" url; 48 url_base = elemAt parts 0; 49 url_without_query = elemAt (splitString "?" url_base) 0; 50 - rev_base = elemAt parts 1; 51 - rev = if match "^[a-fA-F0-9]{40}$" rev_base != null then rev_base else "refs/heads/${rev_base}"; 52 in 53 fetchgit { 54 inherit name rev hash; ··· 61 name, 62 url, 63 hash, 64 - }: 65 let 66 parts = splitString "://" url; 67 proto = elemAt parts 0; 68 path = elemAt parts 1; 69 fetcher = { 70 - "git+http" = fetchGitZig { 71 - inherit name hash; 72 - url = "http://${path}"; 73 - }; 74 - "git+https" = fetchGitZig { 75 - inherit name hash; 76 - url = "https://${path}"; 77 - }; 78 http = fetchZig { 79 inherit name hash; 80 url = "http://${path}"; ··· 89 in 90 linkFarm name [ 91 { 92 - name = "1220930a42f8da3fb7f723e3ad3f6dcc6db76327dd8d26274566423192d53e91b2bb"; 93 path = fetchZigArtifact { 94 - name = "flags"; 95 - url = "https://github.com/n0s4/flags/archive/b3905aa990719ff567f1c5a2f89e6dd3292d8533.tar.gz"; 96 - hash = "sha256-2lN2goQgjU5Hf18tvDV/csS83A20nA9Iu2/fKXtpZok="; 97 }; 98 } 99 { 100 - name = "1220d0fb2bff7b453dbb39d1db3eb472b6680e2564f2b23b0e947671be47bbdd188f"; 101 path = fetchZigArtifact { 102 - name = "tracy"; 103 - url = "https://github.com/neurocyte/zig-tracy/archive/e04e31c64498149a324491b8534758e6af43a5c2.tar.gz"; 104 - hash = "sha256-otvs9tKc8zMRFng0VJDn5iNf7lvbozjrtH0q8IFnP0w="; 105 }; 106 } 107 { 108 - name = "122051b30656170b4628580e571d98b1fe45d7c0d581bc2d45e894c75c6376294ede"; 109 path = fetchZigArtifact { 110 - name = "tracy_src"; 111 - url = "https://github.com/neurocyte/tracy/archive/0ff0a1b324f497cf313a445637b7df25aabefb47.tar.gz"; 112 - hash = "sha256-dzMilJsOSdjNyvhyDb1v5dPWcR5uvhnQmsBynAJH74I="; 113 }; 114 } 115 { 116 - name = "1220220dbc7fe91c1c54438193ca765cebbcb7d58f35cdcaee404a9d2245a42a4362"; 117 path = fetchZigArtifact { 118 name = "dizzy"; 119 url = "https://github.com/neurocyte/dizzy/archive/455d18369cbb2a0458ba70be919cd378338d695e.tar.gz"; ··· 121 }; 122 } 123 { 124 - name = "1220bbfd147f41fa49d2e5406096f3529c62e9335f4d2a89ae381e679a76ce398f1f"; 125 path = fetchZigArtifact { 126 name = "thespian"; 127 - url = "https://github.com/neurocyte/thespian/archive/db3ad5f45e707a04eaa51aa657995abe43ce967a.tar.gz"; 128 - hash = "sha256-La5pv08xPAnkNxBHjpTmLpKxrcifRFWcqm8NYp92iRA="; 129 }; 130 } 131 { 132 - name = "1220c85e0d9438ec518849c84e3ea66633a0e191e49c4ae4bbb3bc46626cd8dfad75"; 133 path = fetchZigArtifact { 134 name = "asio"; 135 - url = "https://github.com/neurocyte/asio/archive/b9c9c23ef2e6f11b6123535ec33e5a23ed0c59da.tar.gz"; 136 - hash = "sha256-tD9lxE6RRAptBE9suZA4ANpT5x/B3e4YINay9Se78XY="; 137 }; 138 } 139 { 140 - name = "1220e4f3baf09dc23e48616f7dbf00bd45c3034faa2eddede7bb45ef4c23a19b962b"; 141 path = fetchZigArtifact { 142 name = "themes"; 143 - url = "https://github.com/neurocyte/flow-themes/releases/download/master-8b79cf6d79373c142393ec26a81b19f4701f4372/flow-themes.tar.gz"; 144 - hash = "sha256-xy0cTVc85U6JpI+oca2XKXE7GAs0EId21DeQCDa8+n0="; 145 }; 146 } 147 { 148 - name = "122019f077d09686b1ec47928ca2b4bf264422f3a27afc5b49dafb0129a4ceca0d01"; 149 path = fetchZigArtifact { 150 name = "fuzzig"; 151 - url = "https://github.com/fjebaker/fuzzig/archive/0fd156d5097365151e85a85eef9d8cf0eebe7b00.tar.gz"; 152 - hash = "sha256-XVOKqHX2X8HvRDJgnqVEPN/A0hFvCk8Fgsss0CKInYQ="; 153 }; 154 } 155 { 156 - name = "12207e33747072d878fce61f587c133124dc95f4ae8aab7d2b3f467699586af07c77"; 157 path = fetchZigArtifact { 158 name = "vaxis"; 159 - url = "https://github.com/neurocyte/libvaxis/archive/d899244bc0a3775b59c18e90eb41acee11675f96.tar.gz"; 160 - hash = "sha256-8bK0zM6rD/mqTaHDZKMgS3+qV1VviImM9jr9D0lkPdw="; 161 }; 162 } 163 { 164 - name = "1220dd654ef941fc76fd96f9ec6adadf83f69b9887a0d3f4ee5ac0a1a3e11be35cf5"; 165 path = fetchZigArtifact { 166 name = "zigimg"; 167 - url = "git+https://github.com/zigimg/zigimg#3a667bdb3d7f0955a5a51c8468eac83210c1439e"; 168 - hash = "sha256-oLf3YH3yeg4ikVO/GahMCDRMTU31AHkfSnF4rt7xTKo="; 169 }; 170 } 171 { 172 - name = "122055beff332830a391e9895c044d33b15ea21063779557024b46169fb1984c6e40"; 173 path = fetchZigArtifact { 174 name = "zg"; 175 - url = "https://github.com/neurocyte/zg/archive/refs/tags/v0.13.2.tar.gz"; 176 - hash = "sha256-Hd8HlYEkkA/2BLW+4d/0Ibw7r7U533us3n2QR+XG/PQ="; 177 }; 178 } 179 { 180 - name = "1220755ea2a5aa6bb3713437aaafefd44812169fe43f1da755c3ee6101b85940f441"; 181 path = fetchZigArtifact { 182 name = "zeit"; 183 - url = "https://github.com/rockorager/zeit/archive/9cca8ec620a54c3b07cd249f25e5bcb3153d03d7.tar.gz"; 184 - hash = "sha256-4bxyQKbVUtYzZixUq2d+iiSPGkcwg+dG4WLaDYYQzn8="; 185 }; 186 } 187 { 188 - name = "1220925614447b54ccc9894bbba8b202c6a8b750267890edab7732064867e46f3217"; 189 path = fetchZigArtifact { 190 name = "win32"; 191 - url = "https://github.com/marlersoft/zigwin32/archive/259b6f353a48968d7e3171573db4fd898b046188.tar.gz"; 192 - hash = "sha256-N9Jp2vmq1+xPWByb+VZkbS2lm9FCrUW4UBAPhSP+dUw="; 193 - }; 194 - } 195 - { 196 - name = "1220f9702ca6257f5464b31e576b1e92b0f441bf0e61733c4a2fbf95b7c0c55a3e22"; 197 - path = fetchZigArtifact { 198 - name = "tree-sitter"; 199 - url = "https://github.com/neurocyte/tree-sitter/releases/download/master-69775ce3ba8a5e331bba9feb760d1ba31394eea7/source.tar.gz"; 200 - hash = "sha256-0ZLcPuhUV6Z3EsXfU7gXRrG/nRP9zuLRSL00Q5OGnus="; 201 }; 202 } 203 ]
··· 16 let 17 unpackZigArtifact = 18 { name, artifact }: 19 + runCommandLocal name { nativeBuildInputs = [ zig ]; } '' 20 + hash="$(zig fetch --global-cache-dir "$TMPDIR" ${artifact})" 21 + mv "$TMPDIR/p/$hash" "$out" 22 + chmod 755 "$out" 23 + ''; 24 25 fetchZig = 26 { ··· 38 name, 39 url, 40 hash, 41 + rev ? throw "rev is required, remove and regenerate the zon2json-lock file", 42 }: 43 let 44 parts = splitString "#" url; 45 url_base = elemAt parts 0; 46 url_without_query = elemAt (splitString "?" url_base) 0; 47 in 48 fetchgit { 49 inherit name rev hash; ··· 56 name, 57 url, 58 hash, 59 + ... 60 + }@args: 61 let 62 parts = splitString "://" url; 63 proto = elemAt parts 0; 64 path = elemAt parts 1; 65 fetcher = { 66 + "git+http" = fetchGitZig ( 67 + args 68 + // { 69 + url = "http://${path}"; 70 + } 71 + ); 72 + "git+https" = fetchGitZig ( 73 + args 74 + // { 75 + url = "https://${path}"; 76 + } 77 + ); 78 http = fetchZig { 79 inherit name hash; 80 url = "http://${path}"; ··· 89 in 90 linkFarm name [ 91 { 92 + name = "N-V-__8AANMzUiemOR2eNnrtlMmAGHFqij6VYtDUiaFfn6Dw"; 93 path = fetchZigArtifact { 94 + name = "tree_sitter"; 95 + url = "https://github.com/neurocyte/tree-sitter/releases/download/master-1c3ad59bd98ee430b166054030dac4c46d641e39/source.tar.gz"; 96 + hash = "sha256-pIgKBT8RUAS4oeaSot9Rvy4FpYVHeG3oeaBM0rsJg+k="; 97 }; 98 } 99 { 100 + name = "cbor-1.0.0-RcQE_HvqAACcrLH7t3IDZOshgY2xqJA_UX330MvwSepb"; 101 path = fetchZigArtifact { 102 + name = "cbor"; 103 + url = "https://github.com/neurocyte/cbor/archive/1fccb83c70cd84e1dff57cc53f7db8fb99909a94.tar.gz"; 104 + hash = "sha256-c0wlwa+jdqC2b2CfbLsb/l3vXVBnK7WkzUH7F49xqic="; 105 }; 106 } 107 { 108 + name = "flags-0.8.0-AAAAAJV0AACuGBBnpUnHqZzAhoGTp4ibFROBQQQZGRqx"; 109 path = fetchZigArtifact { 110 + name = "flags"; 111 + url = "https://github.com/n0s4/flags/archive/372501d1576b5723829bcba98e41361132c7b618.tar.gz"; 112 + hash = "sha256-PBwUqM4wTYwKyY584K0MPo5aorYflYrYi1dJm8zwI2Y="; 113 }; 114 } 115 { 116 + name = "dizzy-1.0.0-AAAAAM1wAAAiDbx_6RwcVEOBk8p2XOu8t9WPNc3K7kBK"; 117 path = fetchZigArtifact { 118 name = "dizzy"; 119 url = "https://github.com/neurocyte/dizzy/archive/455d18369cbb2a0458ba70be919cd378338d695e.tar.gz"; ··· 121 }; 122 } 123 { 124 + name = "thespian-0.0.1-owFOjlgaBgCqc3FCnB4Xyg8-9jyIDWgHSJMGx_nt5Kcc"; 125 path = fetchZigArtifact { 126 name = "thespian"; 127 + url = "https://github.com/neurocyte/thespian/archive/ccdcbbff09f945eec063ebf889581db3e1312107.tar.gz"; 128 + hash = "sha256-qY/9CVgD6btprY4alo5/21EBJ9ORIivlcKY8wPPHa4k="; 129 }; 130 } 131 { 132 + name = "cbor-1.0.0-RcQE_GDyAABovyRXoYFX8zD_NVOLGDc9l5g09-W-svMR"; 133 + path = fetchZigArtifact { 134 + name = "cbor"; 135 + url = "https://github.com/neurocyte/cbor/archive/5ea4b7319146f29bb1aa9acf65982feaba9edc3d.tar.gz"; 136 + hash = "sha256-0QN34UG28U3lnlb9sVWV6otrpHBN2Kv2GZwZ3BYz2GQ="; 137 + }; 138 + } 139 + { 140 + name = "asio-1.30.2-tLhDdyKA4QBqQFDrsuK_hO1HfqX-DQMl-Sku7yy4vUfM"; 141 path = fetchZigArtifact { 142 name = "asio"; 143 + url = "https://github.com/neurocyte/asio/archive/24d28864ec5aae6146d88a172288e3bf3f099734.tar.gz"; 144 + hash = "sha256-CPU+Ka5V+2ooaY8kfKM9q1AjJ11rujHFFnCjyn5hZFo="; 145 + }; 146 + } 147 + { 148 + name = "zig_tracy-0.0.3-5-cp3JZ2AAC6j-gWFhPKXyF6WASJpCzQeNy7Bi712t1a"; 149 + path = fetchZigArtifact { 150 + name = "tracy"; 151 + url = "https://github.com/neurocyte/zig-tracy/archive/82f18a661af17089198fb7c489ef253f02b939b5.tar.gz"; 152 + hash = "sha256-87iK+rmBvZY70c8ypqgtRgw5YWoahZ0ss+0HDzdQgaM="; 153 + }; 154 + } 155 + { 156 + name = "N-V-__8AAO2QjgFRswZWFwtGKFgOVx2Ysf5F18DVgbwtReiU"; 157 + path = fetchZigArtifact { 158 + name = "tracy_src"; 159 + url = "https://github.com/neurocyte/tracy/archive/0ff0a1b324f497cf313a445637b7df25aabefb47.tar.gz"; 160 + hash = "sha256-dzMilJsOSdjNyvhyDb1v5dPWcR5uvhnQmsBynAJH74I="; 161 }; 162 } 163 { 164 + name = "N-V-__8AAJiAIgDMVIi8CRb_xko9_qVQ-UiQzd5FTBBr0aPa"; 165 path = fetchZigArtifact { 166 name = "themes"; 167 + url = "https://github.com/neurocyte/flow-themes/releases/download/master-952f9f630ea9544088fd30293666ee0650b7a690/flow-themes.tar.gz"; 168 + hash = "sha256-yFgIYMmdYoqnysAZ4MaawFAtAJk0ktXXD0IR287LTYw="; 169 }; 170 } 171 { 172 + name = "fuzzig-0.1.1-AAAAALNIAQBmbHr-MPalGuR393Vem2pTQXI7_LXeNJgX"; 173 path = fetchZigArtifact { 174 name = "fuzzig"; 175 + url = "https://github.com/fjebaker/fuzzig/archive/44c04733c7c0fee3db83672aaaaf4ed03e943156.tar.gz"; 176 + hash = "sha256-wGcJpiW0unNSgX5i9sNuUyqKVFDECcadN7dgbx/SKVg="; 177 }; 178 } 179 { 180 + name = "vaxis-0.1.0-BWNV_HwOCQCw5wTV63hQGSc1QJzsNcytH6sGf1GBc0hP"; 181 path = fetchZigArtifact { 182 name = "vaxis"; 183 + url = "https://github.com/neurocyte/libvaxis/archive/6137cb4c44a7350996f0946a069739e5075d1f23.tar.gz"; 184 + hash = "sha256-EVvjwYTIw6SKeqqGHNMm9zRVgpo+TRjtrUl1Mg8tJ8M="; 185 }; 186 } 187 { 188 + name = "zigimg-0.1.0-lly-O6N2EABOxke8dqyzCwhtUCAafqP35zC7wsZ4Ddxj"; 189 path = fetchZigArtifact { 190 name = "zigimg"; 191 + url = "git+https://github.com/TUSF/zigimg#31268548fe3276c0e95f318a6c0d2ab10565b58d"; 192 + hash = "sha256-oblfr2FIzuqq0FLo/RrzCwUX1NJJuT53EwD3nP3KwN0="; 193 + rev = "31268548fe3276c0e95f318a6c0d2ab10565b58d"; 194 }; 195 } 196 { 197 + name = "zg-0.14.0-oGqU3KEFswIffnDu8eAE2XlhzwcfgjwtM6akIc5L7cEV"; 198 path = fetchZigArtifact { 199 name = "zg"; 200 + url = "git+https://codeberg.org/atman/zg#0b05141b033043c5f7bcd72048a48eef6531ea6c"; 201 + hash = "sha256-PLntlktC5RI4CN88oo5+0CliUu4b4O65Ubf6jr8U9xY="; 202 + rev = "0b05141b033043c5f7bcd72048a48eef6531ea6c"; 203 }; 204 } 205 { 206 + name = "zeit-0.0.0-AAAAACVbAgAiIzg1rccZU1qOfO_dKQKme7-37xmEQcqc"; 207 path = fetchZigArtifact { 208 name = "zeit"; 209 + url = "https://github.com/rockorager/zeit/archive/8fd203f85f597f16e0a525c1f1ca1e0bffded809.tar.gz"; 210 + hash = "sha256-2UIdeG6QTZoLL6NkUQIvaO+O6xpoy9nWhua/5Qyv4To="; 211 }; 212 } 213 { 214 + name = "zigwin32-25.0.28-preview-AAAAAEEl_AMhnKSs-lgEyjmUX5JVTpNQewd8A2Bbekwc"; 215 path = fetchZigArtifact { 216 name = "win32"; 217 + url = "https://github.com/marlersoft/zigwin32/archive/e8739b32a33ce48a3286aba31918b26a9dfc6ef0.tar.gz"; 218 + hash = "sha256-WSN9jOkey4dzLnhT68tOJyfnws/Ki7fnb4W+LDrPLwc="; 219 }; 220 } 221 ]
+5 -5
pkgs/by-name/fl/flow-control/package.nix
··· 2 lib, 3 fetchFromGitHub, 4 stdenv, 5 - zig_0_13, 6 callPackage, 7 }: 8 9 stdenv.mkDerivation (finalAttrs: { 10 pname = "flow-control"; 11 - version = "0.3.2"; 12 13 src = fetchFromGitHub { 14 owner = "neurocyte"; 15 repo = "flow"; 16 tag = "v${finalAttrs.version}"; 17 - hash = "sha256-D1pFP5tw323UJgWvLvh2sTiZG1hq5DP0FakdXEISRxs="; 18 }; 19 postPatch = '' 20 ln -s ${ 21 callPackage ./build.zig.zon.nix { 22 - zig = zig_0_13; 23 } 24 } $ZIG_GLOBAL_CACHE_DIR/p 25 ''; 26 27 nativeBuildInputs = [ 28 - zig_0_13.hook 29 ]; 30 31 passthru.updateScript = ./update.sh;
··· 2 lib, 3 fetchFromGitHub, 4 stdenv, 5 + zig_0_14, 6 callPackage, 7 }: 8 9 stdenv.mkDerivation (finalAttrs: { 10 pname = "flow-control"; 11 + version = "0.4.0"; 12 13 src = fetchFromGitHub { 14 owner = "neurocyte"; 15 repo = "flow"; 16 tag = "v${finalAttrs.version}"; 17 + hash = "sha256-I7wty82zyuwZjzhfUBPd+7sx20cmRpQt1V6eCK7o0oQ="; 18 }; 19 postPatch = '' 20 ln -s ${ 21 callPackage ./build.zig.zon.nix { 22 + zig = zig_0_14; 23 } 24 } $ZIG_GLOBAL_CACHE_DIR/p 25 ''; 26 27 nativeBuildInputs = [ 28 + zig_0_14.hook 29 ]; 30 31 passthru.updateScript = ./update.sh;
+3 -2
pkgs/by-name/fl/flow-control/update.sh
··· 1 #!/usr/bin/env nix-shell 2 - #!nix-shell -i bash -p bash common-updater-scripts gnused 3 4 latest_tag=$(list-git-tags --url=https://github.com/neurocyte/flow | sed 's/^v//' | tail -n 1) 5 ··· 10 wget "https://raw.githubusercontent.com/neurocyte/flow/v${latest_tag}/build.zig.zon" 11 wget -P src/syntax "https://raw.githubusercontent.com/neurocyte/flow/v${latest_tag}/src/syntax/build.zig.zon" 12 13 - nix --extra-experimental-features 'nix-command flakes' run github:Cloudef/zig2nix#zon2nix -- build.zig.zon >pkgs/by-name/fl/flow-control/build.zig.zon.nix 14 15 # strip file protocol 16 sed -i '\|file = unpackZigArtifact { inherit name; artifact = /. + path; };|d' pkgs/by-name/fl/flow-control/build.zig.zon.nix
··· 1 #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p bash wget common-updater-scripts gnused 3 4 latest_tag=$(list-git-tags --url=https://github.com/neurocyte/flow | sed 's/^v//' | tail -n 1) 5 ··· 10 wget "https://raw.githubusercontent.com/neurocyte/flow/v${latest_tag}/build.zig.zon" 11 wget -P src/syntax "https://raw.githubusercontent.com/neurocyte/flow/v${latest_tag}/src/syntax/build.zig.zon" 12 13 + nix --extra-experimental-features 'nix-command flakes' run github:Cloudef/zig2nix#zon2nix -- build.zig.zon 14 + mv build.zig.zon.nix pkgs/by-name/fl/flow-control/build.zig.zon.nix 15 16 # strip file protocol 17 sed -i '\|file = unpackZigArtifact { inherit name; artifact = /. + path; };|d' pkgs/by-name/fl/flow-control/build.zig.zon.nix