Conversation
7d34da0 to
591c147
Compare
| holochain.program = "${holochain}/bin/holochain"; | ||
| lair-keystore.program = "${lair-keystore}/bin/lair-keystore"; | ||
| hc-launch.program = "${hc-launch}/bin/hc-launch"; | ||
| hc-scaffold.program = "${hc-scaffold}/bin/hc-scaffold"; |
There was a problem hiding this comment.
This means we can scaffold without needing to download binaries for everything that's in the Holonix shell. As long as it's cached of course! This will reduce the download size to get started.
| craneLib.buildPackage { | ||
| pname = "lair-keystore"; | ||
| src = craneLib.cleanCargoSource inputs.hc-scaffold; | ||
| pname = "hc-scaffold"; |
There was a problem hiding this comment.
You saw nothing, move along :)
| in | ||
| craneLib.buildPackage { | ||
| pname = "holochain"; | ||
| version = "workspace"; |
There was a problem hiding this comment.
I'd done this in the old Holonix for some unknown reason, I don't think it's something we want to keep until a reason appears
There was a problem hiding this comment.
I assume a backup or something at some point? Not sure, but not being read by anything and I don't think it has anything that isn't in the pipeline that we are using
|
|
||
| - run: result/bin/${{ matrix.package }} --version | ||
|
|
||
| - name: Run nix app |
There was a problem hiding this comment.
This can replace the previous command.
|
|
||
| # outputs that this flake should produce | ||
| outputs = inputs @ { self, nixpkgs, flake-parts, rust-overlay, crane, holochain-src, lair-keystore-src, hc-launch-src, ... }: | ||
| outputs = inputs @ { self, nixpkgs, flake-parts, rust-overlay, crane, ... }: |
Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>
| os: [ubuntu-latest, macos-latest, macos-13] | ||
| package: [holochain, lair-keystore, hc-launch, hc-scaffold] | ||
| packages: | ||
| - [holochain, hc, hc-run-local-services, hc-sandbox, hcterm] |
There was a problem hiding this comment.
Grouped because they all build the same derivation - so even with a cache it will de-duplicate work to run these on the same machine
Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>
| uses: cachix/install-nix-action@v27 | ||
| with: | ||
| install_url: https://releases.nixos.org/nix/nix-2.18.0/install | ||
| install_url: https://releases.nixos.org/nix/nix-2.22.1/install |
There was a problem hiding this comment.
The versioning of the Nix package manager is confusing. On nixos.org the recommended version is 2.22.1, but in nixpkgs' nix the stable version is still 2.18.2
There was a problem hiding this comment.
Yeah it's quite unhelpful that. It is as you say, but we should be getting a new version of nixpkgs soon (a 2024 version) that will have the newer Nix in.
I think as an end-user who is not running on NixOS, the latest Nix is fair game to use
There was a problem hiding this comment.
Yes, let's go with the one on the nix website.
No description provided.