-
Notifications
You must be signed in to change notification settings - Fork 7
/
flake.nix
32 lines (29 loc) · 866 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
{
description = "Description for the project";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
aiken = {
url = "github:aiken-lang/aiken/97acd6d";
};
};
outputs = inputs@{ self, nixpkgs, flake-utils, aiken }:
flake-utils.lib.eachDefaultSystem (system:
let
overlay = final : prev: {
aiken = inputs.aiken.packages.${system}.default;
nodejs = prev.nodejs-18_x;
pnpm = prev.nodePackages.pnpm;
};
pkgs = import nixpkgs { inherit system; overlays = [overlay ]; };
in rec
{
devShells.default = pkgs.mkShell {
packages = [ pkgs.nodejs pkgs.pnpm pkgs.aiken] ;
shellHook = ''
echo "Aiken Dev Environment"
echo "Aiken Version: `${pkgs.aiken}/bin/aiken --version`"
'';
};
}
);
}