-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
41 lines (35 loc) · 874 Bytes
/
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
36
37
38
39
40
{
description = "Nix development dependencies for crystal";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixos-22.11;
flake-utils.url = github:numtide/flake-utils;
crystal-flake.url = github:manveru/crystal-flake;
};
outputs = inputs:
let
utils = inputs.flake-utils.lib;
in
utils.eachSystem
[
"x86_64-linux"
]
(system:
let
nixpkgs = import inputs.nixpkgs {
inherit system;
};
crystalflake-pkg = inputs.crystal-flake.packages.${system};
in
{
devShells.default = nixpkgs.pkgs.mkShell {
buildInputs = with nixpkgs.pkgs; [
crystal
shards
];
nativeBuildInputs = with nixpkgs.pkgs; [
crystal
shards
];
};
});
}