Skip to content

Commit

Permalink
Add flake for devShells
Browse files Browse the repository at this point in the history
This flake adds dev shells for x86 linux and both x86/arm mac
development. Right now it's using a crystal flake I made in my own
github account, but we can move that to crunchy's nixpkgs once we get
that going.

The flake does not provide a build yet for cb, but that should be
possible in the future.
  • Loading branch information
will committed Mar 20, 2023
1 parent 5fe5ddc commit cafe97f
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shard.lock linguist-generated
flake.lock linguist-generated
78 changes: 78 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
description = "CrunchyBridge CLI";

inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs-crystal = {
url = "github:will/nixpkgs-crystal";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, nixpkgs-crystal, flake-utils }:
let
systems = (builtins.attrNames nixpkgs-crystal.outputs.packages);
in
flake-utils.lib.eachSystem systems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
crystal = nixpkgs-crystal.packages.${system}.crystal;
in
{

devShells.default = pkgs.mkShell {
buildInputs = [ crystal pkgs.libssh2 ];
};

}
);
}

0 comments on commit cafe97f

Please sign in to comment.