git.delta.rocks / jrsonnet / refs/commits / 69c135ab886a

difftreelog

ci fix build args

Yaroslav Bolyukin2024-03-25parent: #a6dd70c.patch.diff
in: master

1 file changed

modifiednix/jrsonnet.nixdiffbeforeafterboth
before · nix/jrsonnet.nix
1{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${optionalString withNightlyFeatures "-nightly"}${optionalString withExperimentalFeatures "-experimental"}";1920    cargoTestFlags = [21      "--features=mimalloc,legacy-this-file${optionalString withNightlyFeatures ",nightly"}${optionalString withExperimentalFeatures ",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  }