├── README.md ├── flake.nix ├── default.nix ├── .github └── workflows │ ├── develop-to-main.yml │ └── update.yml └── flake.lock /README.md: -------------------------------------------------------------------------------- 1 | # Holonix 2 | 3 | Read all about it at https://developer.holochain.org/docs/install/ 4 | 5 | This repo is deprecated as its contents moved to https://holochain/holochain. 6 | -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- 1 | { 2 | description = "Deprecated holochain repo (moved to https://github.com/holochain/holochain)"; 3 | 4 | inputs = { 5 | holochain.url = "github:holochain/holochain"; 6 | flake-compat = { 7 | url = "github:edolstra/flake-compat"; 8 | flake = false; 9 | follows = "holochain/flake-compat"; 10 | }; 11 | }; 12 | 13 | outputs = inputs: {}; 14 | } 15 | -------------------------------------------------------------------------------- /default.nix: -------------------------------------------------------------------------------- 1 | # This is just a simple proxy to github:holochain/holochain/ 2 | args @ {...}: 3 | let 4 | flake = 5 | import 6 | ( 7 | let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in 8 | fetchTarball { 9 | url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; 10 | sha256 = lock.nodes.flake-compat.locked.narHash; 11 | } 12 | ) 13 | { src = ./.; }; 14 | in 15 | import (flake.defaultNix.inputs.holochain + /holonix) args 16 | -------------------------------------------------------------------------------- /.github/workflows/develop-to-main.yml: -------------------------------------------------------------------------------- 1 | on: 2 | workflow_dispatch: {} 3 | push: 4 | branches: 5 | - develop 6 | 7 | jobs: 8 | create-pr: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - name: Checkout repository 12 | uses: actions/checkout@v2.4.0 13 | - name: Create a pull-request towards the develop branch 14 | id: cpr1 15 | env: 16 | GITHUB_TOKEN: ${{ secrets.HRA_GITHUB_TOKEN }} 17 | run: | 18 | set -euE -o pipefail 19 | 20 | if gh pr view develop -q '.number' --json 'number' > pr-number; then 21 | echo "::set-output name=pull-request-number::$(cat pr-number)" 22 | else 23 | gh pr create \ 24 | --title "Merge develop back into main" \ 25 | --label release \ 26 | --base main --head develop \ 27 | --body 'this pull-request was automatically triggered by a change to the develop branch to keep the main branch up-to-date.' 2>&1 | tee gh-pr-create.log 28 | 29 | pull_request_number="$(tail -n1 gh-pr-create.log | grep -oE '[0-9]+$')" 30 | echo "::set-output name=pull-request-number::${pull_request_number}" 31 | fi 32 | - name: Enable Pull Request Automerge 33 | uses: peter-evans/enable-pull-request-automerge@v1 34 | with: 35 | token: ${{ secrets.HRA_GITHUB_TOKEN}} 36 | pull-request-number: ${{ steps.cpr1.outputs.pull-request-number }} 37 | merge-method: merge 38 | - name: Auto approve Pull Request 39 | uses: juliangruber/approve-pull-request-action@v1 40 | with: 41 | github-token: ${{ secrets.GITHUB_TOKEN }} 42 | number: ${{ steps.cpr1.outputs.pull-request-number }} 43 | -------------------------------------------------------------------------------- /.github/workflows/update.yml: -------------------------------------------------------------------------------- 1 | name: update holochain proxy 2 | 3 | on: 4 | workflow_dispatch: 5 | schedule: 6 | - cron: "0/17 * * * *" # At every 17th minute from 0 through 59. 7 | 8 | jobs: 9 | update-holochain-reference: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Checkout code 13 | uses: actions/checkout@v3 14 | with: 15 | ref: develop 16 | 17 | - name: Install nix 18 | uses: cachix/install-nix-action@v18 19 | with: 20 | install_url: https://releases.nixos.org/nix/nix-2.12.0/install 21 | extra_nix_config: | 22 | experimental-features = flakes nix-command 23 | github_access_token: ${{ secrets.GITHUB_TOKEN }} 24 | 25 | - name: Setup cachix 26 | uses: cachix/cachix-action@v12 27 | with: 28 | name: "holochain-ci" 29 | authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" 30 | 31 | - name: set up git config 32 | shell: bash 33 | run: | 34 | git config --global user.email "hrabot@holochain.org" 35 | git config --global user.name "Holochain Release Automation" 36 | 37 | - name: nix flake update 38 | run: "nix flake update" 39 | 40 | - name: create pull request 41 | uses: peter-evans/create-pull-request@v3 42 | id: cpr1 43 | with: 44 | token: ${{ secrets.HRA_GITHUB_TOKEN }} 45 | title: update holochain reference 46 | branch: auto-update 47 | draft: false 48 | delete-branch: true 49 | 50 | - name: Enable Pull Request Automerge 51 | if: steps.cpr1.outputs.pull-request-operation == 'created' || steps.cpr1.outputs.pull-request-operation == 'updated' 52 | uses: peter-evans/enable-pull-request-automerge@v1 53 | with: 54 | token: ${{ secrets.HRA_GITHUB_TOKEN }} 55 | pull-request-number: ${{ steps.cpr1.outputs.pull-request-number }} 56 | merge-method: squash 57 | 58 | - name: Auto approve Pull Request 59 | if: steps.cpr1.outputs.pull-request-operation == 'created' || steps.cpr1.outputs.pull-request-operation == 'updated' 60 | uses: juliangruber/approve-pull-request-action@v1 61 | with: 62 | github-token: ${{ secrets.GITHUB_TOKEN }} 63 | number: ${{ steps.cpr1.outputs.pull-request-number }} 64 | -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- 1 | { 2 | "nodes": { 3 | "cargo-chef": { 4 | "flake": false, 5 | "locked": { 6 | "lastModified": 1672901199, 7 | "narHash": "sha256-MHTuR4aQ1rQaBKx1vWDy2wbvcT0ZAzpkVB2zylSC+k0=", 8 | "owner": "LukeMathWalker", 9 | "repo": "cargo-chef", 10 | "rev": "5c9f11578a2e0783cce27666737d50f84510b8b5", 11 | "type": "github" 12 | }, 13 | "original": { 14 | "owner": "LukeMathWalker", 15 | "ref": "main", 16 | "repo": "cargo-chef", 17 | "type": "github" 18 | } 19 | }, 20 | "cargo-rdme": { 21 | "flake": false, 22 | "locked": { 23 | "lastModified": 1675118998, 24 | "narHash": "sha256-lrYWqu3h88fr8gG3Yo5GbFGYaq5/1Os7UtM+Af0Bg4k=", 25 | "owner": "orium", 26 | "repo": "cargo-rdme", 27 | "rev": "f9dbb6bccc078f4869f45ae270a2890ac9a75877", 28 | "type": "github" 29 | }, 30 | "original": { 31 | "owner": "orium", 32 | "ref": "v1.1.0", 33 | "repo": "cargo-rdme", 34 | "type": "github" 35 | } 36 | }, 37 | "crane": { 38 | "inputs": { 39 | "flake-compat": "flake-compat", 40 | "flake-utils": "flake-utils", 41 | "nixpkgs": [ 42 | "holochain", 43 | "nixpkgs" 44 | ], 45 | "rust-overlay": "rust-overlay" 46 | }, 47 | "locked": { 48 | "lastModified": 1675475924, 49 | "narHash": "sha256-KWdfV9a6+zG6Ij/7PZYLnomjBZZUu8gdRy+hfjGrrJQ=", 50 | "owner": "ipetkov", 51 | "repo": "crane", 52 | "rev": "1bde9c762ebf26de9f8ecf502357c92105bc4577", 53 | "type": "github" 54 | }, 55 | "original": { 56 | "owner": "ipetkov", 57 | "repo": "crane", 58 | "type": "github" 59 | } 60 | }, 61 | "crate2nix": { 62 | "flake": false, 63 | "locked": { 64 | "lastModified": 1675642992, 65 | "narHash": "sha256-uDBDZuiq7qyg82Udp82/r4zg5HKfIzBQqgl2U9THiQM=", 66 | "owner": "kolloch", 67 | "repo": "crate2nix", 68 | "rev": "45fc83132c8c91c77a1cd61fe0c945411d1edba8", 69 | "type": "github" 70 | }, 71 | "original": { 72 | "owner": "kolloch", 73 | "repo": "crate2nix", 74 | "type": "github" 75 | } 76 | }, 77 | "flake-compat": { 78 | "flake": false, 79 | "locked": { 80 | "lastModified": 1673956053, 81 | "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", 82 | "owner": "edolstra", 83 | "repo": "flake-compat", 84 | "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", 85 | "type": "github" 86 | }, 87 | "original": { 88 | "owner": "edolstra", 89 | "repo": "flake-compat", 90 | "type": "github" 91 | } 92 | }, 93 | "flake-compat_2": { 94 | "flake": false, 95 | "locked": { 96 | "lastModified": 1673956053, 97 | "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", 98 | "owner": "edolstra", 99 | "repo": "flake-compat", 100 | "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", 101 | "type": "github" 102 | }, 103 | "original": { 104 | "owner": "edolstra", 105 | "repo": "flake-compat", 106 | "type": "github" 107 | } 108 | }, 109 | "flake-parts": { 110 | "inputs": { 111 | "nixpkgs-lib": "nixpkgs-lib" 112 | }, 113 | "locked": { 114 | "lastModified": 1675295133, 115 | "narHash": "sha256-dU8fuLL98WFXG0VnRgM00bqKX6CEPBLybhiIDIgO45o=", 116 | "owner": "hercules-ci", 117 | "repo": "flake-parts", 118 | "rev": "bf53492df08f3178ce85e0c9df8ed8d03c030c9f", 119 | "type": "github" 120 | }, 121 | "original": { 122 | "id": "flake-parts", 123 | "type": "indirect" 124 | } 125 | }, 126 | "flake-utils": { 127 | "locked": { 128 | "lastModified": 1667395993, 129 | "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", 130 | "owner": "numtide", 131 | "repo": "flake-utils", 132 | "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", 133 | "type": "github" 134 | }, 135 | "original": { 136 | "owner": "numtide", 137 | "repo": "flake-utils", 138 | "type": "github" 139 | } 140 | }, 141 | "flake-utils_2": { 142 | "locked": { 143 | "lastModified": 1659877975, 144 | "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", 145 | "owner": "numtide", 146 | "repo": "flake-utils", 147 | "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", 148 | "type": "github" 149 | }, 150 | "original": { 151 | "owner": "numtide", 152 | "repo": "flake-utils", 153 | "type": "github" 154 | } 155 | }, 156 | "holochain": { 157 | "inputs": { 158 | "cargo-chef": "cargo-chef", 159 | "cargo-rdme": "cargo-rdme", 160 | "crane": "crane", 161 | "crate2nix": "crate2nix", 162 | "flake-compat": "flake-compat_2", 163 | "flake-parts": "flake-parts", 164 | "holochain": [ 165 | "holochain", 166 | "versions", 167 | "holochain" 168 | ], 169 | "lair": [ 170 | "holochain", 171 | "versions", 172 | "lair" 173 | ], 174 | "launcher": [ 175 | "holochain", 176 | "versions", 177 | "launcher" 178 | ], 179 | "nix-filter": "nix-filter", 180 | "nixpkgs": "nixpkgs", 181 | "rust-overlay": "rust-overlay_2", 182 | "scaffolding": [ 183 | "holochain", 184 | "versions", 185 | "scaffolding" 186 | ], 187 | "versions": "versions" 188 | }, 189 | "locked": { 190 | "lastModified": 1676548332, 191 | "narHash": "sha256-R54GC2bSdXPYBTc5BTebHnjYM1H1JcZAUWBJQaUHGdc=", 192 | "owner": "holochain", 193 | "repo": "holochain", 194 | "rev": "46ea9534bf8254b1c1fc8bac48339325d832bcd0", 195 | "type": "github" 196 | }, 197 | "original": { 198 | "owner": "holochain", 199 | "repo": "holochain", 200 | "type": "github" 201 | } 202 | }, 203 | "holochain_2": { 204 | "flake": false, 205 | "locked": { 206 | "lastModified": 1675455504, 207 | "narHash": "sha256-619bpPtO0IUSzPzLNzHERuvqGblpjO65rsw3jdxoEkQ=", 208 | "owner": "holochain", 209 | "repo": "holochain", 210 | "rev": "ed5b7bb461c2a8bfd4d2633bad604a20b8f2da03", 211 | "type": "github" 212 | }, 213 | "original": { 214 | "owner": "holochain", 215 | "ref": "holochain-0.1.3", 216 | "repo": "holochain", 217 | "type": "github" 218 | } 219 | }, 220 | "lair": { 221 | "flake": false, 222 | "locked": { 223 | "lastModified": 1670953460, 224 | "narHash": "sha256-cqOr7iWzsNeomYQiiFggzG5Dr4X0ysnTkjtA8iwDLAQ=", 225 | "owner": "holochain", 226 | "repo": "lair", 227 | "rev": "cbfbefefe43073904a914c8181a450209a74167b", 228 | "type": "github" 229 | }, 230 | "original": { 231 | "owner": "holochain", 232 | "ref": "lair_keystore-v0.2.3", 233 | "repo": "lair", 234 | "type": "github" 235 | } 236 | }, 237 | "launcher": { 238 | "flake": false, 239 | "locked": { 240 | "lastModified": 1675974122, 241 | "narHash": "sha256-eSYSMR4fHnwgquWaFZM2DOl7LRTsDrOGZTYkDc8HE3Q=", 242 | "owner": "holochain", 243 | "repo": "launcher", 244 | "rev": "3bcd14e81cda07e015071b070c2ef032aa1d1193", 245 | "type": "github" 246 | }, 247 | "original": { 248 | "owner": "holochain", 249 | "ref": "holochain-0.1", 250 | "repo": "launcher", 251 | "type": "github" 252 | } 253 | }, 254 | "nix-filter": { 255 | "locked": { 256 | "lastModified": 1675361037, 257 | "narHash": "sha256-CTbDuDxFD3U3g/dWUB+r+B/snIe+qqP1R+1myuFGe2I=", 258 | "owner": "numtide", 259 | "repo": "nix-filter", 260 | "rev": "e1b2f96c2a31415f362268bc48c3fccf47dff6eb", 261 | "type": "github" 262 | }, 263 | "original": { 264 | "owner": "numtide", 265 | "repo": "nix-filter", 266 | "type": "github" 267 | } 268 | }, 269 | "nixpkgs": { 270 | "locked": { 271 | "lastModified": 1676300157, 272 | "narHash": "sha256-1HjRzfp6LOLfcj/HJHdVKWAkX9QRAouoh6AjzJiIerU=", 273 | "owner": "NixOS", 274 | "repo": "nixpkgs", 275 | "rev": "545c7a31e5dedea4a6d372712a18e00ce097d462", 276 | "type": "github" 277 | }, 278 | "original": { 279 | "id": "nixpkgs", 280 | "ref": "nixos-unstable", 281 | "type": "indirect" 282 | } 283 | }, 284 | "nixpkgs-lib": { 285 | "locked": { 286 | "dir": "lib", 287 | "lastModified": 1675183161, 288 | "narHash": "sha256-Zq8sNgAxDckpn7tJo7V1afRSk2eoVbu3OjI1QklGLNg=", 289 | "owner": "NixOS", 290 | "repo": "nixpkgs", 291 | "rev": "e1e1b192c1a5aab2960bf0a0bd53a2e8124fa18e", 292 | "type": "github" 293 | }, 294 | "original": { 295 | "dir": "lib", 296 | "owner": "NixOS", 297 | "ref": "nixos-unstable", 298 | "repo": "nixpkgs", 299 | "type": "github" 300 | } 301 | }, 302 | "root": { 303 | "inputs": { 304 | "flake-compat": [ 305 | "holochain", 306 | "flake-compat" 307 | ], 308 | "holochain": "holochain" 309 | } 310 | }, 311 | "rust-overlay": { 312 | "inputs": { 313 | "flake-utils": [ 314 | "holochain", 315 | "crane", 316 | "flake-utils" 317 | ], 318 | "nixpkgs": [ 319 | "holochain", 320 | "crane", 321 | "nixpkgs" 322 | ] 323 | }, 324 | "locked": { 325 | "lastModified": 1675391458, 326 | "narHash": "sha256-ukDKZw922BnK5ohL9LhwtaDAdCsJL7L6ScNEyF1lO9w=", 327 | "owner": "oxalica", 328 | "repo": "rust-overlay", 329 | "rev": "383a4acfd11d778d5c2efcf28376cbd845eeaedf", 330 | "type": "github" 331 | }, 332 | "original": { 333 | "owner": "oxalica", 334 | "repo": "rust-overlay", 335 | "type": "github" 336 | } 337 | }, 338 | "rust-overlay_2": { 339 | "inputs": { 340 | "flake-utils": "flake-utils_2", 341 | "nixpkgs": [ 342 | "holochain", 343 | "nixpkgs" 344 | ] 345 | }, 346 | "locked": { 347 | "lastModified": 1676514619, 348 | "narHash": "sha256-/zVNJdETe/7txiP8NVjAjrAPudLIvjKJWgztuTi75Qw=", 349 | "owner": "oxalica", 350 | "repo": "rust-overlay", 351 | "rev": "3bab7ae4a80de02377005d611dc4b0a13082aa7c", 352 | "type": "github" 353 | }, 354 | "original": { 355 | "owner": "oxalica", 356 | "repo": "rust-overlay", 357 | "type": "github" 358 | } 359 | }, 360 | "scaffolding": { 361 | "flake": false, 362 | "locked": { 363 | "lastModified": 1676478168, 364 | "narHash": "sha256-sCcmhrmiji83+80P4q7RIDHF+LGp2VkfKvTHoz+XBmE=", 365 | "owner": "holochain", 366 | "repo": "scaffolding", 367 | "rev": "b95929a492a2d039d7c40fb95f66c0fa8c222377", 368 | "type": "github" 369 | }, 370 | "original": { 371 | "owner": "holochain", 372 | "ref": "holochain-0.1", 373 | "repo": "scaffolding", 374 | "type": "github" 375 | } 376 | }, 377 | "versions": { 378 | "inputs": { 379 | "holochain": "holochain_2", 380 | "lair": "lair", 381 | "launcher": "launcher", 382 | "scaffolding": "scaffolding" 383 | }, 384 | "locked": { 385 | "lastModified": 1676484909, 386 | "narHash": "sha256-lykBlfnMWySHI3HvgAhzNZnW0mTg6oXWzzQdRjqR1mc=", 387 | "path": "./versions/0_1", 388 | "type": "path" 389 | }, 390 | "original": { 391 | "dir": "versions/0_1", 392 | "owner": "holochain", 393 | "repo": "holochain", 394 | "type": "github" 395 | } 396 | } 397 | }, 398 | "root": "root", 399 | "version": 7 400 | } 401 | --------------------------------------------------------------------------------