-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
33 lines (29 loc) · 1.05 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
{
description = "Crunchy Nixpkgs";
nixConfig = {
extra-substituters = "https://crunchy-public.cachix.org";
extra-trusted-public-keys = "crunchy-public.cachix.org-1:bsv90PlrrUAFcIA7NoajCWDpddTY2GGXX7XG+C1BMzQ=";
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
lastGoodStaticBoehmgc.url = "github:NixOS/nixpkgs/14feac318eefa31d936d9b6a2aacb1928899abfe";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs@{ self, flake-utils, nixpkgs, lastGoodStaticBoehmgc, ... }:
{
lib.crystal = import ./crystal/lib.nix;
} // flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
staticBoehmgc = lastGoodStaticBoehmgc.legacyPackages.${system}.pkgsStatic.boehmgc;
crystal = import ./crystal { inherit pkgs system inputs staticBoehmgc; };
in
{
packages = crystal.packages;
checks = crystal.checks;
devShells.default = pkgs.mkShell {
packages = with pkgs; [ cachix jq ];
};
}
);
}