generated from blockhackersio/zk-starter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathflake.nix
53 lines (47 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
43
44
45
46
47
48
49
50
51
52
53
{
description = "Development environment with package list";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
solc = {
url = "github:ryardley/solc.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, flake-utils, solc }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
solc.overlay
];
};
circom-lsp = pkgs.rustPlatform.buildRustPackage rec {
pname = "circom-lsp";
version = "0.1.3"; # Specify the correct version
src = pkgs.fetchFromGitHub {
owner = "rubydusa"; # Specify the owner
repo = pname;
rev = "v${version}";
sha256 = "sha256-Y71qmeDUh6MwSlFrSnG+Nr/un5szTUo27+J/HphGr7M="; # Provide the correct hash
};
cargoSha256 = "sha256-Lq8SpzkUqYgayQTApNngOlhceAQAPG9Rwg1pmGvyxnM="; # Provide the correct cargo hash
sourceRoot = "source/server";
doCheck = false;
};
in
with pkgs;
{
devShells.default = mkShell {
# package list
buildInputs = [
circom
solc_0_8_24
(solc.mkDefault pkgs solc_0_8_24)
circom-lsp
];
};
}
);
}