-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
40 lines (38 loc) · 1011 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 = "Renovate flake test";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-22.11";
utils.url = "github:numtide/flake-utils";
yarn2nix.url = "github:input-output-hk/yarn2nix";
sbt-hook = {
url = "github:MonikaJassova/sbt-nix?dir=sbt-hook";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "utils";
};
midnight-e2e-tests = {
url = "github:input-output-hk/midnight-e2e-tests";
inputs.utils.follows = "utils";
};
};
outputs = {
self,
nixpkgs,
yarn2nix,
utils,
sbt-hook,
midnight-e2e-tests,
...
}:
utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages.${system}.extend yarn2nix.overlay;
sbt = sbt-hook.packages.${system}.default;
in
rec {
# nix develop shell
devShells.default = pkgs.mkShell {
packages = [pkgs.nodejs-16_x pkgs.yarn pkgs.which sbt pkgs.cargo];
};
}
);
}