-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
3 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
shard.lock linguist-generated | ||
flake.lock linguist-generated |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
|
||
} | ||
); | ||
} |