summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ci/circom/package.nix
blob: f0614c81400ea9283100929a38f4b005c716a777 (plain)
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
{
  lib,
  rustPlatform,
  fetchFromGitHub,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "circom";
  version = "2.2.3";

  src = fetchFromGitHub {
    owner = "iden3";
    repo = "circom";
    rev = "v${finalAttrs.version}";
    hash = "sha256-om9rLaQAimbBQx3kl+OlRpewqYcEEu0MiudaFfSDI2A=";
  };

  cargoHash = "sha256-h7jdcSXQ0qcsWcG7d0nb2iQCsQmXFj9hO5NAptwVe28=";
  doCheck = false;

  meta = {
    description = "zkSnark circuit compiler";
    mainProgram = "circom";
    homepage = "https://github.com/iden3/circom";
    changelog = "https://github.com/iden3/circom/blob/${finalAttrs.src.rev}/RELEASES.md";
    license = lib.licenses.gpl3Only;
    maintainers = [ ];
  };
})