From b827052e1d92836278bc2115eab0e2d337a45093 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 30 Oct 2023 16:12:01 +0100 Subject: [PATCH] circom: init at 2.1.6 https://github.com/iden3/circom --- pkgs/by-name/ci/circom/package.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkgs/by-name/ci/circom/package.nix diff --git a/pkgs/by-name/ci/circom/package.nix b/pkgs/by-name/ci/circom/package.nix new file mode 100644 index 000000000000..6d74c5e268e3 --- /dev/null +++ b/pkgs/by-name/ci/circom/package.nix @@ -0,0 +1,27 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "circom"; + version = "2.1.6"; + + src = fetchFromGitHub { + owner = "iden3"; + repo = "circom"; + rev = "v${version}"; + hash = "sha256-2YusBWAYDrTvFHYIjKpALphhmtsec7jjKHb1sc9lt3Q="; + }; + + cargoHash = "sha256-G6z+DxIhmm1Kzv8EQCqvfGAhQn5Vrx9LXrl+bWBVKaM="; + doCheck = false; + + meta = with lib; { + description = "zkSnark circuit compiler"; + homepage = "https://github.com/iden3/circom"; + changelog = "https://github.com/iden3/circom/blob/${src.rev}/RELEASES.md"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ raitobezarius ]; + }; +}