difftreelog
ci fix build args
in: master
1 file changed
nix/jrsonnet.nixdiffbeforeafterboth1{2 lib,3 craneLib,4 makeWrapper,5 withNightlyFeatures ? false,6 withExperimentalFeatures ? false,7 forBenchmarks ? false,8}:9with lib;10 craneLib.buildPackage rec {11 src = lib.cleanSourceWith {12 src = ../.;13 filter = path: type:14 (lib.hasSuffix "\.jsonnet" path)15 || (craneLib.filterCargoSources path type);16 };17 pname = "jrsonnet";18 version = "current${optionalStringwithNightlyFeatures"-nightly"}${optionalStringwithExperimentalFeatures"-experimental"}";1920 cargoTestFlags = [21 "--features=mimalloc,legacy-this-file${optionalStringwithNightlyFeatures",nightly"}${optionalStringwithExperimentalFeatures",experimental"}"22 ];23 cargoBuildFlags = cargoTestFlags;2425 nativeBuildInputs = [makeWrapper];2627 # To clean-up hyperfine output28 postInstall = optionalString forBenchmarks ''29 wrapProgram $out/bin/jrsonnet --add-flags "--max-stack=200000 --os-stack=200000"30 '';31 }