Skip to content

Commit

Permalink
build: add nix flake & nix install step
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyg committed Oct 9, 2023
1 parent 444cd31 commit 9a1efbe
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
with:
repository: holochain/holochain
ref: ${{ github.event.client_payload.ref }}
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: "Build"
env:
system: ${{ matrix.platform.system }}
Expand Down
36 changes: 36 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
description = "Template for Holochain app development";

inputs = {
versions.url = "github:holochain/holochain?dir=versions/0_2";

holochain-flake.url = "github:holochain/holochain";
holochain-flake.inputs.versions.follows = "versions";

nixpkgs.follows = "holochain-flake/nixpkgs";
flake-parts.follows = "holochain-flake/flake-parts";
};

outputs = inputs:
inputs.flake-parts.lib.mkFlake
{
inherit inputs;
}
{
systems = builtins.attrNames inputs.holochain-flake.devShells;
perSystem =
{ inputs'
, config
, pkgs
, system
, ...
}: {
devShells.default = pkgs.mkShell {
inputsFrom = [ inputs'.holochain-flake.devShells.holonix ];
packages = [
pkgs.nodejs-18_x
];
};
};
};
}

0 comments on commit 9a1efbe

Please sign in to comment.