-
Notifications
You must be signed in to change notification settings - Fork 10
/
flake.nix
42 lines (41 loc) · 1.4 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
36
37
38
39
40
41
42
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
fedimint = {
url = "github:fedimint/fedimint?ref=v0.4.3";
};
};
outputs = { self, flake-utils, fedimint }:
flake-utils.lib.eachDefaultSystem (system:
let
nixpkgs = fedimint.inputs.nixpkgs;
pkgs = import nixpkgs {
inherit system;
overlays = fedimint.overlays.fedimint;
};
fmLib = fedimint.lib.${system};
in
{
devShells = fmLib.devShells // {
default = fmLib.devShells.default.overrideAttrs (prev: {
nativeBuildInputs = [
fedimint.packages.${system}.devimint
fedimint.packages.${system}.gateway-pkgs
fedimint.packages.${system}.fedimint-pkgs
pkgs.pnpm
pkgs.nodejs_20
# The version of playwright in nixpkgs has to match the verison specified in package.json
pkgs.playwright-driver.browsers
] ++ prev.nativeBuildInputs;
shellHook = ''
export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
'';
});
};
});
nixConfig = {
extra-substituters = [ "https://fedimint.cachix.org" ];
extra-trusted-public-keys = [ "fedimint.cachix.org-1:FpJJjy1iPVlvyv4OMiN5y9+/arFLPcnZhZVVCHCDYTs=" ];
};
}