1{2 fetchFromGitHub,3 rustPlatform,4 makeWrapper,5 6 forBenchmarks ? true,7 _unused ? forBenchmarks,8}:9rustPlatform.buildRustPackage rec {10 pname = "jrsonnet";11 version = "release";1213 src = fetchFromGitHub {14 owner = "CertainLach";15 repo = pname;16 rev = "ad68a2495da324ce7a893992a6b32851849c64eb";17 hash = "sha256-N2z0JcJG6iQ+eAE1GGF+c1+T7Pti8oCgx+QWdhT+33M=";18 };19 cargoHash = "sha256-ZHmdlqakucapzXJz6L7ZJpmvqTutelN8qkWAD4uDJr8=";2021 cargoTestFlags = [ "--package=jrsonnet --features=mimalloc,legacy-this-file" ];22 cargoBuildFlags = [ "--package=jrsonnet --features=mimalloc,legacy-this-file" ];2324 buildInputs = [ makeWrapper ];2526 postInstall = ''27 wrapProgram $out/bin/jrsonnet --add-flags "--max-stack=200000"28 '';29}