-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
35 lines (30 loc) · 1.02 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
description = "CrunchyBridge CLI";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs-crunchy.url = "github:crunchydata/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, nixpkgs-crunchy, flake-utils }:
let
systems = builtins.map (a: a.system) (builtins.catAttrs "crystal" (builtins.attrValues nixpkgs-crunchy.outputs.packages));
in
flake-utils.lib.eachSystem systems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
crunchy = nixpkgs-crunchy.packages.${system};
crystal = crunchy.crystalWrapped.override { buildInputs = [ pkgs.libssh2 ]; };
in
{
devShells.default = pkgs.mkShell {
buildInputs = with crunchy; [
crystal2nix
ameba
] ++ [ crystal ] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.Security
pkgs.darwin.apple_sdk.frameworks.Foundation
];
};
}
);
}