Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "circom"; 9 version = "2.2.2"; 10 11 src = fetchFromGitHub { 12 owner = "iden3"; 13 repo = "circom"; 14 rev = "v${version}"; 15 hash = "sha256-BSInX4owuamRWnlKL1yJJOyzRIiE55TIzCk2TdX7aOQ="; 16 }; 17 18 cargoHash = "sha256-dkgLp6BKuublS97iRXYzbT4ztbWBD5IDMz9rDY9XgcA="; 19 doCheck = false; 20 21 meta = with lib; { 22 description = "zkSnark circuit compiler"; 23 mainProgram = "circom"; 24 homepage = "https://github.com/iden3/circom"; 25 changelog = "https://github.com/iden3/circom/blob/${src.rev}/RELEASES.md"; 26 license = licenses.gpl3Only; 27 maintainers = with maintainers; [ raitobezarius ]; 28 }; 29}