git.delta.rocks / jrsonnet / refs/commits / be638810f878

difftreelog

source

nix/jrsonnet-cross-windows.nix717 Bsourcehistory
1{2  lib,3  craneLib,4  targetTriple,5  withExperimentalFeatures ? false,6}:7let8  inherit (lib) optionalString;9in10craneLib.buildPackage {11  src = lib.cleanSourceWith {12    src = ../.;13    filter = path: type: (lib.hasSuffix ".jsonnet" path) || (craneLib.filterCargoSources path type);14  };15  pname = "jrsonnet";16  version = "current${optionalString withExperimentalFeatures "-experimental"}";17  strictDeps = true;1819  cargoExtraArgs = "--locked ${optionalString withExperimentalFeatures "--features=experimental"} --target=${targetTriple}";2021  doNotPostBuildInstallCargoBinaries = true;22  installPhaseCommand = ''23    mkdir -p $out/bin24    cp target/${targetTriple}/release/jrsonnet.exe $out/bin/jrsonnet.exe25  '';26}