nixpkgs/pkgs/by-name/ci/circom/package.nix
2024-10-07 12:32:25 +00:00

29 lines
694 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "circom";
version = "2.2.0";
src = fetchFromGitHub {
owner = "iden3";
repo = "circom";
rev = "v${version}";
hash = "sha256-OxfqbsxSIy0tLDMfDmdCZeMb2LCSG7I+Vm9RHb7tXFc=";
};
cargoHash = "sha256-KmUTlzRRmtD9vKJmh0MSUQxN8gz4qnp9fLs5Z0Lmypw=";
doCheck = false;
meta = with lib; {
description = "zkSnark circuit compiler";
mainProgram = "circom";
homepage = "https://github.com/iden3/circom";
changelog = "https://github.com/iden3/circom/blob/${src.rev}/RELEASES.md";
license = licenses.gpl3Only;
maintainers = with maintainers; [ raitobezarius ];
};
}