1{ lib, fetchFromGitHub, rustPlatform, runCommand, makeWrapper }:234rustPlatform.buildRustPackage rec {5 pname = "jrsonnet";6 version = "before-str-extend";78 src = fetchFromGitHub {9 owner = "CertainLach";10 repo = pname;11 rev = "ccafbf79faf649e0990e277c061be9a2b62ad84c";12 hash = "sha256-LTDIJY9wfv4h5e3/5bONHHBS0qMLKdY6bk6ajKEjG7A=";13 };14 cargoHash = "sha256-LBlJWE3LcbOe/uu19TbLhbUhBKy8DzuDCP4XyuAEmUk=";1516 cargoTestFlags = [ "--package=jrsonnet --features=mimalloc,legacy-this-file" ];17 cargoBuildFlags = [ "--package=jrsonnet --features=mimalloc,legacy-this-file" ];1819 buildInputs = [ makeWrapper ];2021 postInstall = ''22 wrapProgram $out/bin/jrsonnet --add-flags "--max-stack=200000 --os-stack=200000"23 '';24}