-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathflake.nix
More file actions
28 lines (26 loc) · 823 Bytes
/
flake.nix
File metadata and controls
28 lines (26 loc) · 823 Bytes
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
{
description = "The decentralised governance system from Golem Foundation";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/master";
flake-utils.url = "github:numtide/flake-utils";
foundry.url = "github:shazow/foundry.nix/monthly";
};
outputs = {nixpkgs, flake-utils, foundry, ... }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ foundry.overlay ];
};
darwinInputs = pkgs.lib.optionals pkgs.stdenv.isDarwin [ pkgs.xcbuild ];
in {
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.solc
pkgs.foundry-bin
pkgs.nodejs_22.pkgs.yarn
pkgs.nodejs_22
pkgs.act # enables running GH pipeline locally
] ++ darwinInputs;
};
});
}