Skip to content

Commit

Permalink
chore(nix): configure formatter and run nix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Aug 21, 2024
1 parent 9c0b7c6 commit 4b3a3b8
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
description = "Template for Holochain app development";

inputs = {
versions.url = "github:holochain/holochain/holochain-0.3.0-beta-dev.45?dir=versions/weekly";
versions.inputs.holochain.url = "github:holochain/holochain/holochain-0.3.0-beta-dev.45";
versions.url =
"github:holochain/holochain/holochain-0.3.0-beta-dev.45?dir=versions/weekly";
versions.inputs.holochain.url =
"github:holochain/holochain/holochain-0.3.0-beta-dev.45";

holochain-flake.url = "github:holochain/holochain";
holochain-flake.inputs.versions.follows = "versions";
Expand All @@ -13,26 +15,20 @@
};

outputs = inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; }
{
systems = builtins.attrNames inputs.holochain-flake.devShells;
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = builtins.attrNames inputs.holochain-flake.devShells;

perSystem =
{ inputs'
, config
, pkgs
, system
, ...
}: {
perSystem = { inputs', config, pkgs, system, ... }: {
formatter = pkgs.nixfmt;

devShells.default = pkgs.mkShell {
inputsFrom = [ inputs'.holochain-flake.devShells.holonix ];
packages = [
pkgs.nodejs-18_x
pkgs.binaryen
# more packages go here
];
};
};
devShells.default = pkgs.mkShell {
inputsFrom = [ inputs'.holochain-flake.devShells.holonix ];
packages = [
pkgs.nodejs-18_x
pkgs.binaryen
# more packages go here
];
};
};
}
};
}

0 comments on commit 4b3a3b8

Please sign in to comment.